From 6cdfe32af0a2e0fac2b2dcc46498d780f143c80f Mon Sep 17 00:00:00 2001 From: tokyo4j Date: Thu, 9 Oct 2025 21:24:44 +0900 Subject: [PATCH] rcxml: move from to --- docs/labwc-config.5.scd | 11 +++++------ docs/rc.xml.all | 2 +- src/config/rcxml.c | 12 ++++++------ 3 files changed, 12 insertions(+), 13 deletions(-) diff --git a/docs/labwc-config.5.scd b/docs/labwc-config.5.scd index d389c4cf..21ac2629 100644 --- a/docs/labwc-config.5.scd +++ b/docs/labwc-config.5.scd @@ -171,7 +171,6 @@ this is for compatibility with Openbox. ``` server - titlebar 0 no no @@ -188,11 +187,6 @@ this is for compatibility with Openbox. that it is not always possible to turn off client side decorations. Default is server. -** [titlebar|none] - Specify how server side decorations are shown for maximized windows. - *titlebar* shows titlebar above a maximized window. *none* shows no server - side decorations around a maximized window. Default is titlebar. - ** The distance in pixels between windows and output edges when using movement actions, for example MoveToEdge. Default is 0. @@ -603,6 +597,11 @@ extending outward from the snapped edge. Even when disabling server side decorations via ToggleDecorations, keep a small border (and resize area) around the window. Default is yes. +** [titlebar|none] + Specify how server side decorations are shown for maximized windows. + *titlebar* shows titlebar above a maximized window. *none* shows no server + side decorations around a maximized window. Default is titlebar. + ** [yes|no] Should drop-shadows be rendered behind windows. Default is no. diff --git a/docs/rc.xml.all b/docs/rc.xml.all index ed80fdf0..44ed984a 100644 --- a/docs/rc.xml.all +++ b/docs/rc.xml.all @@ -11,7 +11,6 @@ server - titlebar 0 no no @@ -45,6 +44,7 @@ 8 yes + titlebar no no diff --git a/src/config/rcxml.c b/src/config/rcxml.c index 1353b3c2..4ed6bd6d 100644 --- a/src/config/rcxml.c +++ b/src/config/rcxml.c @@ -1083,12 +1083,6 @@ 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")) { @@ -1130,6 +1124,12 @@ entry(xmlNode *node, char *nodename, char *content) rc.corner_radius = atoi(content); } else if (!strcasecmp(nodename, "keepBorder.theme")) { set_bool(content, &rc.ssd_keep_border); + } else if (!strcasecmp(nodename, "maximizedDecoration.theme")) { + if (!strcasecmp(content, "titlebar")) { + rc.hide_maximized_window_titlebar = false; + } else if (!strcasecmp(content, "none")) { + rc.hide_maximized_window_titlebar = true; + } } else if (!strcasecmp(nodename, "dropShadows.theme")) { set_bool(content, &rc.shadows_enabled); } else if (!strcasecmp(nodename, "dropShadowsOnTiled.theme")) {