]> Dogcows Code - chaz/openbox/commitdiff
comment what i did
authorDana Jansens <danakj@orodu.net>
Wed, 16 May 2007 03:08:49 +0000 (03:08 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 16 May 2007 03:08:49 +0000 (03:08 +0000)
openbox/action.c

index b01f9d3e59298c6bf54db472377acf0dcb00ecbb..60af74b5e4723a879b3c97e5038cd149f1ca4925 100644 (file)
@@ -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)
             {
This page took 0.025237 seconds and 4 git commands to generate.