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:
Dana Jansens 2007-05-27 23:09:22 +00:00
parent ddfddc15e3
commit c53db44602

View file

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