dont ignore all Virtual pointer events
authorDana Jansens <danakj@orodu.net>
Thu, 17 Apr 2003 08:04:45 +0000 (08:04 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 17 Apr 2003 08:04:45 +0000 (08:04 +0000)
openbox/event.c

index 6cc8b1f..0427d14 100644 (file)
@@ -308,7 +308,8 @@ static gboolean event_ignore(XEvent *e, Client *client)
         /* NotifyVirtual occurs when ungrabbing the pointer */
         if (e->xcrossing.mode == NotifyGrab ||
             e->xcrossing.detail == NotifyInferior ||
-            e->xcrossing.detail == NotifyVirtual)
+            (e->xcrossing.mode == NotifyUngrab &&
+             e->xcrossing.detail == NotifyVirtual))
             return TRUE;
        break;
     }