]> Dogcows Code - chaz/openbox/commitdiff
ignore focusout notifyungrab.
authorDana Jansens <danakj@orodu.net>
Sun, 27 May 2007 23:09:22 +0000 (23:09 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 27 May 2007 23:09:22 +0000 (23:09 +0000)
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

openbox/event.c

index 9eaec027758df48d3ec127fa2bd533a07fa9fd81..bb2490868249473813470d1a81ee24de0c40cfae 100644 (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. */
         if (mode == NotifyGrab)
             return FALSE;
         /* This means focus was taken by a keyboard/mouse grab. */
         if (mode == NotifyGrab)
             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 */
         if (win == RootWindow(ob_display, ob_screen))
 
         /* Focus left the root window revertedto state */
         if (win == RootWindow(ob_display, ob_screen))
This page took 0.023403 seconds and 4 git commands to generate.