all repos — openbox @ 2acbf04cb4ef4a6d1bd0db748aabfba91db4f966

openbox fork - make it a bit more like ryudo

Move focus to a window when the mouse enters a window during a pointer grab, if using "focus under mouse" (Fixes bug #4617)
Dana Jansens danakj@orodu.net
commit

2acbf04cb4ef4a6d1bd0db748aabfba91db4f966

parent

29d595b1783240f2ff63fb8b3bbc6054d909d858

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M openbox/event.copenbox/event.c

@@ -1103,7 +1103,9 @@ case OB_FRAME_CONTEXT_FRAME:

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) {