ignore focusout notifyungrab.
fix focus bug in firefox where you use gmarks popup and when you go to a page with it, it think focus went to a black hole
This commit is contained in:
parent
ddfddc15e3
commit
c53db44602
1 changed files with 3 additions and 0 deletions
|
@ -343,6 +343,9 @@ static gboolean wanted_focusevent(XEvent *e, gboolean in_client_only)
|
||||||
/* This means focus was taken by a keyboard/mouse grab. */
|
/* This means focus was taken by a keyboard/mouse grab. */
|
||||||
if (mode == NotifyGrab)
|
if (mode == NotifyGrab)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
/* This means focus was grabbed on a window and it was released. */
|
||||||
|
if (mode == NotifyUngrab)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
/* Focus left the root window revertedto state */
|
/* Focus left the root window revertedto state */
|
||||||
if (win == RootWindow(ob_display, ob_screen))
|
if (win == RootWindow(ob_display, ob_screen))
|
||||||
|
|
Loading…
Reference in a new issue