fix: fix miss hide bar node when disable animaitons

This commit is contained in:
DreamMaoMao 2026-06-21 22:17:34 +08:00
parent a0feccc6ae
commit 0e3c64d221
3 changed files with 6 additions and 2 deletions

View file

@ -168,7 +168,7 @@ void client_focus_group_member(Client *c) {
arrange(c->mon, false, false);
}
void client_set_tab_node_visible(Client *c) {
void client_check_tab_node_visible(Client *c) {
if (!c || c->iskilling)
return;

View file

@ -460,7 +460,7 @@ void client_draw_title(Client *c) {
}
return;
} else {
client_set_tab_node_visible(c);
client_check_tab_node_visible(c);
}
int32_t bar_w = tw / count;

View file

@ -1132,6 +1132,10 @@ 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) {
client_check_tab_node_visible(c);
}
if (c->mon == m && (c->isglobal || c->isunglobal)) {
c->tags = m->tagset[m->seltags];
}