From 2acbf04cb4ef4a6d1bd0db748aabfba91db4f966 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 16 Oct 2010 18:51:09 -0400 Subject: [PATCH] Move focus to a window when the mouse enters a window during a pointer grab, if using "focus under mouse" (Fixes bug #4617) --- openbox/event.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openbox/event.c b/openbox/event.c index b39660a..ecd20f9 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -1103,7 +1103,9 @@ static void event_handle_client(ObClient *client, XEvent *e) if (grab_on_keyboard()) break; if (e->xcrossing.mode == NotifyGrab || - e->xcrossing.mode == NotifyUngrab || + (e->xcrossing.mode == NotifyUngrab && + /* ungrab enters are used when _under_ mouse is being used */ + !(config_focus_follow && config_focus_under_mouse)) || /*ignore enters when we're already in the window */ e->xcrossing.detail == NotifyInferior) { -- 1.9.1