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

@ -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