]> git.mdlowis.com Git - proto/labwc.git/commitdiff
config: de-couple <FollowMouse> and <raiseOnFocus>
authorJohan Malm <jgm323@gmail.com>
Wed, 29 Dec 2021 14:04:41 +0000 (14:04 +0000)
committerJohan Malm <jgm323@gmail.com>
Wed, 29 Dec 2021 14:04:41 +0000 (14:04 +0000)
Set these two variables indepently of each other as this is cleaner and
more explicit.

In openbox <raiseOnFocus> only applies if <followMouse> is set, but there
is no need to immitate this.

docs/labwc-config.5.scd
src/config/rcxml.c

index 65e1a245472dd26519fbe2aa09b41d3ff99d96ed..e40043fc86ddd64f9a6d32471abb8d276e9fe944 100644 (file)
@@ -38,8 +38,7 @@ Configuration must be wrapped in a <labwc_config> root-node.
        cursor. Default is no.
 
 *<focus><raiseOnFocus>* [yes|no]
-       Raise window to top when focused. Only applies if followMouse is
-       set. Default is no.
+       Raise window to top when focused. Default is no.
 
 # THEME
 
index e305e7d94ee2921b592f7ed28ba49e660e71ba2d..c73f3aa17949944eac0485aa0ec5f4a80ccadf1f 100644 (file)
@@ -335,9 +335,6 @@ entry(xmlNode *node, char *nodename, char *content)
                rc.focus_follow_mouse = get_bool(content);
        } else if (!strcasecmp(nodename, "raiseOnFocus.focus")) {
                rc.raise_on_focus = get_bool(content);
-               if (rc.raise_on_focus) {
-                       rc.focus_follow_mouse = true;
-               }
        } else if (!strcasecmp(nodename, "doubleClickTime.mouse")) {
                long doubleclick_time_parsed = strtol(content, NULL, 10);
                if (doubleclick_time_parsed > 0) {