]> Dogcows Code - chaz/openbox/commitdiff
catch focus out events on the frame window - this happens with revert to parent when...
authorDana Jansens <danakj@orodu.net>
Sat, 2 Jun 2007 03:16:02 +0000 (03:16 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 2 Jun 2007 03:16:02 +0000 (03:16 +0000)
openbox/event.c

index ad146b4796edcae9eb85a432267c2dff07ccb83c..f67c3d5a1ebbbd39c0782bcbd234775fd2e4ec63 100644 (file)
@@ -363,6 +363,13 @@ static gboolean wanted_focusevent(XEvent *e, gboolean in_client_only)
         /* This means focus moved from one client to another */
         if (detail == NotifyNonlinearVirtual)
             return TRUE;
+        /* This means focus moved off of our frame window.
+           When the client reverts to parent and it lands on our frame window,
+           and they are iconifying (not being unmanaged), then we don't get
+           a focus out from the client but only from the frame window, which
+           is this event */
+        if (detail == NotifyNonlinear)
+            return TRUE;
 
         /* Otherwise.. */
         return FALSE;
This page took 0.022773 seconds and 4 git commands to generate.