From 3c11f27201b1b4e79ee590f0b89bedc694a60b8e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ingo=20B=C3=BCrk?= Date: Fri, 29 May 2015 20:28:24 +0200 Subject: [PATCH] Allow hovering over the window decoration to change the focus if the parent container is split horizontally or vertically. fixes #1056 --- src/handlers.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/handlers.c b/src/handlers.c index e7dde581..c6d3e81d 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -228,7 +228,7 @@ static void handle_motion_notify(xcb_motion_notify_event_t *event) { if (config.disable_focus_follows_mouse) return; - if (con->layout != L_DEFAULT) + if (con->layout != L_DEFAULT && con->layout != L_SPLITV && con->layout != L_SPLITH) return; /* see over which rect the user is */ @@ -245,8 +245,6 @@ static void handle_motion_notify(xcb_motion_notify_event_t *event) { x_push_changes(croot); return; } - - return; } /* -- 2.39.2