]> git.mdlowis.com Git - proto/labwc.git/commitdiff
config: make <windowSwitcher> a toplevel element
authorJohan Malm <jgm323@gmail.com>
Wed, 19 Apr 2023 13:34:41 +0000 (14:34 +0100)
committerJohan Malm <johanmalm@users.noreply.github.com>
Fri, 21 Apr 2023 15:05:48 +0000 (16:05 +0100)
...rather than a child of <core>

docs/labwc-config.5.scd
docs/rc.xml.all
src/config/rcxml.c

index 63bd9cc8f21104398231d6778d45c002e0e30561..a3b4b30cbf44bfe7d4a5202194958f069da6fd2a 100644 (file)
@@ -77,7 +77,9 @@ The rest of this man page describes configuration options.
        be used with labwc the preferred mode of the monitor is used instead.
        Default is no.
 
-*<core><windowSwitcher show="" preview="" outlines="" />*
+## WINDOW SWITCHER
+
+*<windowSwitcher show="" preview="" outlines="">*
        *show* [yes|no] Draw the OnScreenDisplay when switching between
        windows. Default is yes.
 
index 0ff8a88e6a38d1102d11c7e0f59a3aa03e280488..9a04ede9686d118235bf8228ac845b27b2cb31c7 100644 (file)
@@ -12,7 +12,6 @@
     <gap>0</gap>
     <adaptiveSync>no</adaptiveSync>
     <reuseOutputMode>no</reuseOutputMode>
-    <windowSwitcher show="yes" preview="yes" outlines="yes" />
   </core>
 
   <!-- <font><theme> can be defined without an attribute to set all places -->
@@ -39,6 +38,8 @@
     </font>
   </theme>
 
+  <windowSwitcher show="yes" preview="yes" outlines="yes" />
+
   <!-- edge strength is in pixels -->
   <resistance>
     <screenEdgeStrength>20</screenEdgeStrength>
index 176b573795b814b497d9be52d35f33e553a11b7a..82f7f1e2c864123a3dfd1e3f73be0f5090532cdd 100644 (file)
@@ -437,13 +437,17 @@ entry(xmlNode *node, char *nodename, char *content)
                rc.snap_top_maximize = get_bool(content);
 
        /* <windowSwitcher show="" preview="" outlines="" /> */
-       } else if (!strcasecmp(nodename, "show.windowSwitcher.core")) {
+       } else if (!strcasecmp(nodename, "show.windowSwitcher")) {
                rc.cycle_view_osd = get_bool(content);
-       } else if (!strcasecmp(nodename, "preview.windowSwitcher.core")) {
+       } else if (!strcasecmp(nodename, "preview.windowSwitcher")) {
                rc.cycle_preview_contents = get_bool(content);
-       } else if (!strcasecmp(nodename, "outlines.windowSwitcher.core")) {
+       } else if (!strcasecmp(nodename, "outlines.windowSwitcher")) {
                rc.cycle_preview_outlines = get_bool(content);
 
+       /* Remove this long term - just a friendly warning for now */
+       } else if (strstr(nodename, "windowswitcher.core")) {
+               wlr_log(WLR_ERROR, "<windowSwitcher> should not be child of <core>");
+
        /* The following three are for backward compatibility only */
        } else if (!strcasecmp(nodename, "cycleViewOSD.core")) {
                rc.cycle_view_osd = get_bool(content);