summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-16 03:08:49 +0000
committerDana Jansens <danakj@orodu.net>2007-05-16 03:08:49 +0000
commit5a1a3c2b1274e1992d8cfd0360ce01ed238b86d2 (patch)
treea1ccac3f2f634f69e2c7cb8d787876da2051891a
parent3addcd8bb9c65db54c43d6c829c2b041e4959ca9 (diff)
comment what i did
-rw-r--r--openbox/action.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/openbox/action.c b/openbox/action.c
index b01f9d3e..60af74b5 100644
--- a/openbox/action.c
+++ b/openbox/action.c
@@ -1141,7 +1141,13 @@ void action_run_list(GSList *acts, ObClient *c, ObFrameContext context,
/* XXX UGLY HACK race with motion event starting a move and the
button release gettnig processed first. answer: don't queue
- moveresize starts. UGLY HACK XXX */
+ moveresize starts. UGLY HACK XXX
+
+ XXX ALSO don't queue showmenu events, because on button press
+ events we need to know if a mouse grab is going to take place,
+ and set the button to 0, so that later motion events don't think
+ that a drag is going on. since showmenu grabs the pointer..
+ */
if (a->data.any.interactive || a->func == action_move ||
a->func == action_resize || a->func == action_showmenu)
{