根据配置为每个屏幕初始化 tags 属性

This commit is contained in:
2025-08-13 01:25:50 +08:00
parent 43ca95d2f4
commit 17f6fb1940
4 changed files with 101 additions and 10 deletions

View File

@@ -11,8 +11,6 @@ typedef struct layout_t {
void (*arrange)(monitor_t *monitor);
} layout_t;
#define TAG_SYMBOL_LENGTH 32
/* 避免引入 xcb 头文件 */
typedef uint32_t xcb_window_t;
@@ -22,8 +20,7 @@ struct monitor_t {
uint32_t monitor_width, monitor_height, window_width, window_height;
uint32_t selected_tag;
uint32_t tag_count;
char (*tags)[TAG_SYMBOL_LENGTH];
char **tags;
/* 为了避免引入 cairo 相关头文件,这里用 void *
* 指针代替实际的指针类型,使用时强转为相应指针类型使用即可 */