summaryrefslogtreecommitdiff
path: root/openbox/event.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-31 23:15:26 +0000
committerDana Jansens <danakj@orodu.net>2007-05-31 23:15:26 +0000
commit6fbeeb8032e623492b9af37f16d8dbf9ad13df5e (patch)
treed991646325e9284d8396476d419addfe9ef59186 /openbox/event.c
parent50a0bf090b76a8fa6f9528365a3854a7657f96ff (diff)
don't hover buttons while the pointer is grabbed
Diffstat (limited to 'openbox/event.c')
-rw-r--r--openbox/event.c4
1 files changed, 4 insertions, 0 deletions
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) {