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

This commit is contained in:
2025-08-22 23:01:25 +08:00
parent c3bcb7ddd2
commit 69c69200d8
9 changed files with 248 additions and 19 deletions

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;