From: Dana Jansens Date: Thu, 31 May 2007 23:15:26 +0000 (+0000) Subject: don't hover buttons while the pointer is grabbed X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=6fbeeb8032e623492b9af37f16d8dbf9ad13df5e;p=chaz%2Fopenbox don't hover buttons while the pointer is grabbed --- diff --git a/openbox/event.c b/openbox/event.c index 37910684..3d58775b 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -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) {