mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-07-02 00:06:12 -04:00
fix: groupbar hide judgement
This commit is contained in:
parent
aa56df474f
commit
869bafd26c
4 changed files with 13 additions and 14 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue