ignore virtual crossing events..
authorDana Jansens <danakj@orodu.net>
Thu, 17 Apr 2003 01:48:26 +0000 (01:48 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 17 Apr 2003 01:48:26 +0000 (01:48 +0000)
openbox/event.c

index 796c243..042a76d 100644 (file)
@@ -304,8 +304,10 @@ 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 */
         if (e->xcrossing.mode == NotifyGrab ||
-            e->xcrossing.detail == NotifyInferior)
+            e->xcrossing.detail == NotifyInferior ||
+            e->xcrossing.detail == NotifyVirtual)
             return TRUE;
        break;
     }