From c797dbe189902667022e779b8358af71f116369f Mon Sep 17 00:00:00 2001 From: Johan Malm Date: Wed, 29 Dec 2021 14:04:41 +0000 Subject: [PATCH] config: de-couple and Set these two variables indepently of each other as this is cleaner and more explicit. In openbox only applies if is set, but there is no need to immitate this. --- docs/labwc-config.5.scd | 3 +-- src/config/rcxml.c | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/docs/labwc-config.5.scd b/docs/labwc-config.5.scd index 65e1a245..e40043fc 100644 --- a/docs/labwc-config.5.scd +++ b/docs/labwc-config.5.scd @@ -38,8 +38,7 @@ Configuration must be wrapped in a root-node. cursor. Default is no. ** [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 diff --git a/src/config/rcxml.c b/src/config/rcxml.c index e305e7d9..c73f3aa1 100644 --- a/src/config/rcxml.c +++ b/src/config/rcxml.c @@ -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) {