mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
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:
parent
72936ccb3e
commit
ef8709d7fe
2 changed files with 11 additions and 0 deletions
|
|
@ -52,6 +52,10 @@ ssd_border_create(struct ssd *ssd)
|
||||||
theme->border_width + SSD_BUTTON_WIDTH,
|
theme->border_width + SSD_BUTTON_WIDTH,
|
||||||
-(ssd->titlebar.height + theme->border_width), color);
|
-(ssd->titlebar.height + theme->border_width), color);
|
||||||
} FOR_EACH_END
|
} FOR_EACH_END
|
||||||
|
|
||||||
|
if (view->maximized) {
|
||||||
|
wlr_scene_node_set_enabled(&ssd->border.tree->node, false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,8 @@
|
||||||
&(ssd)->titlebar.active, \
|
&(ssd)->titlebar.active, \
|
||||||
&(ssd)->titlebar.inactive)
|
&(ssd)->titlebar.inactive)
|
||||||
|
|
||||||
|
static void set_squared_corners(struct ssd *ssd, bool enable);
|
||||||
|
|
||||||
void
|
void
|
||||||
ssd_titlebar_create(struct ssd *ssd)
|
ssd_titlebar_create(struct ssd *ssd)
|
||||||
{
|
{
|
||||||
|
|
@ -81,7 +83,12 @@ ssd_titlebar_create(struct ssd *ssd)
|
||||||
corner_top_right, close_button_unpressed,
|
corner_top_right, close_button_unpressed,
|
||||||
width - SSD_BUTTON_WIDTH * 1, view);
|
width - SSD_BUTTON_WIDTH * 1, view);
|
||||||
} FOR_EACH_END
|
} FOR_EACH_END
|
||||||
|
|
||||||
ssd_update_title(ssd);
|
ssd_update_title(ssd);
|
||||||
|
|
||||||
|
if (view->maximized) {
|
||||||
|
set_squared_corners(ssd, view->maximized);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue