src/ssd: ensure unround corners + disabled borders are set on reload

E.g. when using Reconfigure or ToggleDecorations with a maximized view.
This commit is contained in:
Consolatis 2023-08-25 15:37:28 +02:00
parent 72936ccb3e
commit ef8709d7fe
2 changed files with 11 additions and 0 deletions

View file

@ -52,6 +52,10 @@ ssd_border_create(struct ssd *ssd)
theme->border_width + SSD_BUTTON_WIDTH,
-(ssd->titlebar.height + theme->border_width), color);
} FOR_EACH_END
if (view->maximized) {
wlr_scene_node_set_enabled(&ssd->border.tree->node, false);
}
}
void

View file

@ -17,6 +17,8 @@
&(ssd)->titlebar.active, \
&(ssd)->titlebar.inactive)
static void set_squared_corners(struct ssd *ssd, bool enable);
void
ssd_titlebar_create(struct ssd *ssd)
{
@ -81,7 +83,12 @@ ssd_titlebar_create(struct ssd *ssd)
corner_top_right, close_button_unpressed,
width - SSD_BUTTON_WIDTH * 1, view);
} FOR_EACH_END
ssd_update_title(ssd);
if (view->maximized) {
set_squared_corners(ssd, view->maximized);
}
}
static bool