添加布局算法并在新建窗口时应用规则

This commit is contained in:
zedhugh committed 2025-08-22 23:01:25 +08:00
1 parent c3bcb7ddd2
commit 69c69200d8
9 files changed
+248 -19

No files matched your search

+1 -1
View File
@@ -125,7 +125,7 @@ void draw_bar(monitor_t *monitor, bool is_current_monitor,
/* 绘制 tags */
for (int i = 0; i < g_strv_length(monitor->tags); i++) {
bool selected = (monitor->selected_tag >> i) & 0x1;
bool selected = (monitor->selected_tags >> i) & 0x1;
text = monitor->tags[i];
width = get_text_width(text) + tag_x_padding * 2;