mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
parent
f7021b7504
commit
6a422b6162
2 changed files with 15 additions and 1 deletions
|
|
@ -56,6 +56,14 @@ ssd_border_create(struct ssd *ssd)
|
||||||
if (view->maximized == VIEW_AXIS_BOTH) {
|
if (view->maximized == VIEW_AXIS_BOTH) {
|
||||||
wlr_scene_node_set_enabled(&ssd->border.tree->node, false);
|
wlr_scene_node_set_enabled(&ssd->border.tree->node, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (view->current.width > 0 && view->current.height > 0) {
|
||||||
|
/*
|
||||||
|
* The SSD is recreated by a Reconfigure request
|
||||||
|
* thus we may need to handle squared corners.
|
||||||
|
*/
|
||||||
|
ssd_border_update(ssd);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
|
|
@ -188,8 +188,14 @@ ssd_create(struct view *view, bool active)
|
||||||
ssd->titlebar.height = view->server->theme->title_height;
|
ssd->titlebar.height = view->server->theme->title_height;
|
||||||
ssd_shadow_create(ssd);
|
ssd_shadow_create(ssd);
|
||||||
ssd_extents_create(ssd);
|
ssd_extents_create(ssd);
|
||||||
ssd_border_create(ssd);
|
/*
|
||||||
|
* We need to create the borders after the titlebar because it sets
|
||||||
|
* ssd->state.was_tiled_not_maximized which ssd_border_create()
|
||||||
|
* reacts to. TODO: Set the state here instead so the order does
|
||||||
|
* not matter anymore.
|
||||||
|
*/
|
||||||
ssd_titlebar_create(ssd);
|
ssd_titlebar_create(ssd);
|
||||||
|
ssd_border_create(ssd);
|
||||||
if (view->ssd_titlebar_hidden) {
|
if (view->ssd_titlebar_hidden) {
|
||||||
/* Ensure we keep the old state on Reconfigure or when exiting fullscreen */
|
/* Ensure we keep the old state on Reconfigure or when exiting fullscreen */
|
||||||
ssd_set_titlebar(ssd, false);
|
ssd_set_titlebar(ssd, false);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue