From d8a499deaa61856b4f9e5560966efb2801caa740 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Mon, 18 Oct 2021 00:24:59 +0000 Subject: [PATCH] config: Fix RaiseOnFocus always setting FollowMouse Signed-off-by: Joshua Ashton --- src/config/rcxml.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/config/rcxml.c b/src/config/rcxml.c index e5fe4504..25aa97c5 100644 --- a/src/config/rcxml.c +++ b/src/config/rcxml.c @@ -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) {