]> Dogcows Code - chaz/openbox/commitdiff
only ignore horizontal and vertical scroll events when outside a menu frame, not...
authorMikael Magnusson <mikachu@comhem.se>
Wed, 2 May 2007 20:10:37 +0000 (20:10 +0000)
committerMikael Magnusson <mikachu@comhem.se>
Wed, 2 May 2007 20:10:37 +0000 (20:10 +0000)
openbox/event.c

index a36e9223d3d345195735cee2474d16dc4a3942c5..ec258bbbd0d8c635838e4b536040afad84005b4c 100644 (file)
@@ -1365,7 +1365,9 @@ static gboolean event_handle_menu(XEvent *ev)
 
     switch (ev->type) {
     case ButtonRelease:
-        if (ev->xbutton.button <= 3 && menu_can_hide) {
+        if ((ev->xbutton.button < 4 || ev->xbutton.button > 7)
+            && menu_can_hide)
+        {
             if ((e = menu_entry_frame_under(ev->xbutton.x_root,
                                             ev->xbutton.y_root)))
                 menu_entry_frame_execute(e, ev->xbutton.state,
This page took 0.03002 seconds and 4 git commands to generate.