]> Dogcows Code - chaz/openbox/commitdiff
don't hover buttons while the pointer is grabbed
authorDana Jansens <danakj@orodu.net>
Thu, 31 May 2007 23:15:26 +0000 (23:15 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 31 May 2007 23:15:26 +0000 (23:15 +0000)
openbox/event.c

index 37910684ad1c5d0ea936d7b0d2000b555ad07f86..3d58775b7222efbd7b10489c6ba8747ecedac648 100644 (file)
@@ -823,6 +823,10 @@ static void event_handle_client(ObClient *client, XEvent *e)
         }
         break;
     case MotionNotify:
+        /* when there is a grab on the pointer, we won't get enter/leave
+           notifies, but we still get motion events */
+        if (grab_on_pointer()) break;
+
         con = frame_context(client, e->xmotion.window,
                             e->xmotion.x, e->xmotion.y);
         switch (con) {
This page took 0.028689 seconds and 4 git commands to generate.