mirror of
https://github.com/labwc/labwc.git
synced 2026-04-12 08:21:13 -04:00
decorations: hide border along with titlebar if not keepBorder
This commit is contained in:
parent
496c933582
commit
8f50e33b6d
2 changed files with 12 additions and 0 deletions
|
|
@ -33,6 +33,10 @@ ssd_thickness(struct view *view)
|
|||
return (struct border){ 0 };
|
||||
}
|
||||
|
||||
if (!rc.ssd_keep_border && view->ssd_titlebar_hidden) {
|
||||
return (struct border){ 0 };
|
||||
}
|
||||
|
||||
struct theme *theme = view->server->theme;
|
||||
|
||||
if (view->maximized == VIEW_AXIS_BOTH) {
|
||||
|
|
|
|||
|
|
@ -72,6 +72,14 @@ ssd_border_update(struct ssd *ssd)
|
|||
ssd->margin = ssd_thickness(ssd->view);
|
||||
}
|
||||
|
||||
if (!rc.ssd_keep_border && view->ssd_titlebar_hidden) {
|
||||
if (ssd->border.tree->node.enabled) {
|
||||
wlr_scene_node_set_enabled(&ssd->border.tree->node, false);
|
||||
ssd->margin = ssd_thickness(ssd->view);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (view->maximized == VIEW_AXIS_BOTH) {
|
||||
return;
|
||||
} else if (!ssd->border.tree->node.enabled) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue