]> Dogcows Code - chaz/openbox/commitdiff
ignore all NotifyInferior crossing events again
authorDana Jansens <danakj@orodu.net>
Wed, 24 Sep 2003 03:07:10 +0000 (03:07 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 24 Sep 2003 03:07:10 +0000 (03:07 +0000)
openbox/event.c

index 5388e227c4a3a7ce6d823496bf9d8645100cdf4a..a1a09c301e67a31b418c22295606e00f6141dbe5 100644 (file)
@@ -303,6 +303,11 @@ static void event_hack_mods(XEvent *e)
 static gboolean event_ignore(XEvent *e, ObClient *client)
 {
     switch(e->type) {
+    case EnterNotify:
+    case LeaveNotify:
+        if (e->xcrossing.detail == NotifyInferior)
+            return TRUE;
+        break;
     case FocusIn:
         /* NotifyAncestor is not ignored in FocusIn like it is in FocusOut
            because of RevertToPointerRoot. If the focus ends up reverting to
@@ -753,7 +758,6 @@ static void event_handle_client(ObClient *client, XEvent *e)
             break;
         case OB_FRAME_CONTEXT_FRAME:
             if (e->xcrossing.mode == NotifyGrab ||
-                e->xcrossing.detail == NotifyInferior ||
                 e->xcrossing.mode == NotifyUngrab)
             {
 #ifdef DEBUG_FOCUS
This page took 0.023851 seconds and 4 git commands to generate.