opt: optmize structruing\

This commit is contained in:
DreamMaoMao 2026-06-22 14:18:56 +08:00
parent afd7135fa6
commit b8ca3a3c34
11 changed files with 234 additions and 239 deletions

View file

@ -1132,7 +1132,7 @@ void pre_caculate_before_arrange(Monitor *m, bool want_animation,
client_add_jump_label_node(c);
}
if (c->tab_bar_node && c->tab_bar_node->scene_buffer->node.enabled) {
if (c->group_bar && c->group_bar->scene_buffer->node.enabled) {
client_check_tab_node_visible(c);
}

View file

@ -698,7 +698,7 @@ void vertical_scroller(Monitor *m) {
} else {
bar_height = !root_client->isfullscreen && (root_client->group_prev ||
root_client->group_next)
? config.tab_bar_height
? config.group_bar_height
: 0;
target_geom.y = root_client->geom.y - bar_height;
@ -718,7 +718,7 @@ void vertical_scroller(Monitor *m) {
bar_height = !heads[focus_index - i + 1]->client->isfullscreen &&
(heads[focus_index - i + 1]->client->group_prev ||
heads[focus_index - i + 1]->client->group_next)
? config.tab_bar_height
? config.group_bar_height
: 0;
up_geom.y = heads[focus_index - i + 1]->client->geom.y - cur_gappiv -