mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
ssd: allow hiding titlebar on maximization
<core disableMaximizedServerDecor="yes"> hides the titlebar when a window is maximized. Co-authored-by: @CosmicFusion
This commit is contained in:
parent
943f5751ee
commit
888dbedeed
6 changed files with 25 additions and 0 deletions
|
|
@ -1094,6 +1094,12 @@ entry(xmlNode *node, char *nodename, char *content)
|
|||
} else {
|
||||
rc.xdg_shell_server_side_deco = true;
|
||||
}
|
||||
} else if (!strcasecmp(nodename, "maximizedDecoration.core")) {
|
||||
if (!strcasecmp(content, "titlebar")) {
|
||||
rc.hide_maximized_window_titlebar = false;
|
||||
} else if (!strcasecmp(content, "none")) {
|
||||
rc.hide_maximized_window_titlebar = true;
|
||||
}
|
||||
} else if (!strcmp(nodename, "gap.core")) {
|
||||
rc.gap = atoi(content);
|
||||
} else if (!strcasecmp(nodename, "adaptiveSync.core")) {
|
||||
|
|
@ -1370,6 +1376,7 @@ rcxml_init(void)
|
|||
rc.placement_cascade_offset_y = 0;
|
||||
|
||||
rc.xdg_shell_server_side_deco = true;
|
||||
rc.hide_maximized_window_titlebar = false;
|
||||
rc.show_title = true;
|
||||
rc.title_layout_loaded = false;
|
||||
rc.ssd_keep_border = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue