]> git.mdlowis.com Git - proto/labwc.git/commitdiff
config: Fix RaiseOnFocus always setting FollowMouse
authorJoshua Ashton <joshua@froggi.es>
Mon, 18 Oct 2021 00:24:59 +0000 (00:24 +0000)
committerJohan Malm <johanmalm@users.noreply.github.com>
Mon, 18 Oct 2021 16:25:08 +0000 (17:25 +0100)
Signed-off-by: Joshua Ashton <joshua@froggi.es>
src/config/rcxml.c

index e5fe45041a245d933305d88959884e613f8f7800..25aa97c5c3705f82e90bd88b9f58457a7e4585fe 100644 (file)
@@ -303,8 +303,10 @@ entry(xmlNode *node, char *nodename, char *content)
        } else if (!strcasecmp(nodename, "FollowMouse.focus")) {
                rc.focus_follow_mouse = get_bool(content);
        } else if (!strcasecmp(nodename, "RaiseOnFocus.focus")) {
-               rc.focus_follow_mouse = true;
                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) {