fix: groupbar hide judgement

This commit is contained in:
DreamMaoMao 2026-06-29 13:33:18 +08:00
parent aa56df474f
commit 869bafd26c
4 changed files with 13 additions and 14 deletions

View file

@ -280,12 +280,15 @@ void client_draw_title(Client *c) {
if (!c || !c->group_bar)
return;
if (!c->group_next && !c->group_prev && c->group_bar &&
if (!c->group_next && !c->group_prev &&
c->group_bar->scene_buffer->node.enabled) {
wlr_scene_node_set_enabled(&c->group_bar->scene_buffer->node, false);
return;
}
if (c->is_logic_hide)
return;
if (!c->group_next && !c->group_prev)
return;
@ -397,10 +400,6 @@ void global_draw_group_bar(Client *c, int32_t x, int32_t y, int32_t width,
if (!c->group_bar)
return;
if (height <= 0) {
wlr_scene_node_set_enabled(&c->group_bar->scene_buffer->node, false);
}
wlr_scene_node_set_position(&c->group_bar->scene_buffer->node, x, y);
mango_group_bar_set_size(c->group_bar, width, height);
}