]> git.mdlowis.com Git - proto/labwc.git/commitdiff
config: change <cycleView*> to <windowSwitcher*>
authorJohan Malm <jgm323@gmail.com>
Sat, 11 Mar 2023 22:15:32 +0000 (22:15 +0000)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Sun, 19 Mar 2023 00:19:04 +0000 (01:19 +0100)
Use `<windowSwitcher show="yes" preview="no" outlines="yes" />`
instead of

- `<cycleViewOSD>yes</cycleViewOSD>`
- `<cycleViewOutlines>yes</cycleViewOutlines>`
- `<cycleViewPreview>no</cycleViewPreview>`

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

index 3a4280c34199dcedf508510f566d55322d18c3c5..5532a0419d0706fa7ff5c777ac91b727d289f6ae 100644 (file)
@@ -77,17 +77,15 @@ 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><cycleViewOSD>* [yes|no]
-       Draw the OSD when cycling between windows.
-       Default is yes.
+*<core><windowSwitcher show="" preview="" outlines="" />*
+       *show* [yes|no] Draw the OnScreenDisplay when switching between
+       windows. Default is yes.
 
-*<core><cycleViewPreview>* [yes|no]
-       Preview the contents of the selected window when cycling between windows.
-       Default is no.
+       *preview* [yes|no] Preview the contents of the selected window when
+       switching between windows. Default is no.
 
-*<core><cycleViewOutlines>* [yes|no]
-       Draw an outline around the selected window when cycling between windows.
-       Default is yes.
+       *outlines* [yes|no] Draw an outline around the selected window when
+       switching between windows. Default is yes.
 
 ## RESISTANCE
 
index a92bc73091678f1500843ad6707e393451a567aa..716ac795cbf0cb79e059700d598c37a8b11a20ef 100644 (file)
@@ -12,9 +12,7 @@
     <gap>0</gap>
     <adaptiveSync>no</adaptiveSync>
     <reuseOutputMode>no</reuseOutputMode>
-    <cycleViewOSD>yes</cycleViewOSD>
-    <cycleViewPreview>no</cycleViewPreview>
-    <cycleViewOutlines>yes</cycleViewOutlines>
+    <windowSwitcher show="yes" preview="no" outlines="yes" />
   </core>
 
   <!-- <font><theme> can be defined without an attribute to set all places -->
index 8b968a2ee1161d7b9d5b54a45c0ed7d694ee1537..d2052b6fdde0e6f57e79d9566b388bc282c19e38 100644 (file)
@@ -442,12 +442,29 @@ entry(xmlNode *node, char *nodename, char *content)
                rc.snap_edge_range = atoi(content);
        } else if (!strcasecmp(nodename, "topMaximize.snapping")) {
                rc.snap_top_maximize = get_bool(content);
+
+       /* <windowSwitcher show="" preview="" outlines="" /> */
+       } else if (!strcasecmp(nodename, "show.windowSwitcher.core")) {
+               rc.cycle_view_osd = get_bool(content);
+       } else if (!strcasecmp(nodename, "preview.windowSwitcher.core")) {
+               rc.cycle_preview_contents = get_bool(content);
+       } else if (!strcasecmp(nodename, "outlines.windowSwitcher.core")) {
+               rc.cycle_preview_outlines = get_bool(content);
+
+       /* The following three are for backward compatibility only */
        } else if (!strcasecmp(nodename, "cycleViewOSD.core")) {
                rc.cycle_view_osd = get_bool(content);
+               wlr_log(WLR_ERROR, "<cycleViewOSD> is deprecated."
+                       " Use <windowSwitcher show=\"\" />");
        } else if (!strcasecmp(nodename, "cycleViewPreview.core")) {
                rc.cycle_preview_contents = get_bool(content);
+               wlr_log(WLR_ERROR, "<cycleViewPreview> is deprecated."
+                       " Use <windowSwitcher preview=\"\" />");
        } else if (!strcasecmp(nodename, "cycleViewOutlines.core")) {
                rc.cycle_preview_outlines = get_bool(content);
+               wlr_log(WLR_ERROR, "<cycleViewOutlines> is deprecated."
+                       " Use <windowSwitcher outlines=\"\" />");
+
        } else if (!strcasecmp(nodename, "name.names.desktops")) {
                struct workspace *workspace = znew(*workspace);
                workspace->name = xstrdup(content);