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 a36e922..ec258bb 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,