Move focus to a window when the mouse enters a window during a pointer grab, if using "focus under mouse" (Fixes bug #4617)
This commit is contained in:
parent
29d595b178
commit
2acbf04cb4
1 changed files with 3 additions and 1 deletions
|
@ -1103,7 +1103,9 @@ static void event_handle_client(ObClient *client, XEvent *e)
|
||||||
if (grab_on_keyboard())
|
if (grab_on_keyboard())
|
||||||
break;
|
break;
|
||||||
if (e->xcrossing.mode == NotifyGrab ||
|
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 */
|
/*ignore enters when we're already in the window */
|
||||||
e->xcrossing.detail == NotifyInferior)
|
e->xcrossing.detail == NotifyInferior)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue