]> Dogcows Code - chaz/openbox/commitdiff
nm cant do it.. damn
authorDana Jansens <danakj@orodu.net>
Fri, 18 Apr 2003 22:05:39 +0000 (22:05 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 18 Apr 2003 22:05:39 +0000 (22:05 +0000)
openbox/event.c

index 337841acd6e65e0036a4a565c1ce73971a2257fe..91aa5106985c583308e463342289f51e07aa09ac 100644 (file)
@@ -333,22 +333,23 @@ static gboolean event_ignore(XEvent *e, Client *client)
     case LeaveNotify:
         /* NotifyUngrab occurs when a mouse button is released and the event is
            caused, like when lowering a window */
-        /* NotifyVirtual occurs when ungrabbing the pointer,
-           NotifyNonlinearVirtual occurs when closing a gtk app's menu */
+        /* NotifyVirtual occurs when ungrabbing the pointer */
         if (e->xcrossing.mode == NotifyGrab ||
             e->xcrossing.detail == NotifyInferior ||
             (e->xcrossing.mode == NotifyUngrab &&
-             (e->xcrossing.detail == NotifyVirtual ||
-              e->xcrossing.detail == NotifyNonlinearVirtual))) {
-#ifdef DEBUG_FOCUS
-            g_message("EnterNotify mode %d detail %d on %lx IGNORED",
+             e->xcrossing.detail == NotifyVirtual)) {
+#ifndef DEBUG_FOCUS
+            g_message("%sNotify mode %d detail %d on %lx IGNORED",
+                      (e->type == EnterNotify ? "Enter" : "Leave"),
                       e->xcrossing.mode,
                       e->xcrossing.detail, client?client->window:0);
 #endif
             return TRUE;
         }
-#ifdef DEBUG_FOCUS
-        g_message("EnterNotify mode %d detail %d on %lx", e->xcrossing.mode,
+#ifndef DEBUG_FOCUS
+        g_message("%sNotify mode %d detail %d on %lx",
+                  (e->type == EnterNotify ? "Enter" : "Leave"),
+                  e->xcrossing.mode,
                   e->xcrossing.detail, client?client->window:0);
 #endif
        break;
This page took 0.028605 seconds and 4 git commands to generate.