From: Mikael Magnusson Date: Wed, 2 May 2007 20:10:37 +0000 (+0000) Subject: only ignore horizontal and vertical scroll events when outside a menu frame, not... X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=0fee4e91a8e66c7d7f7f1694bfe7bc0fa9f505d7;p=chaz%2Fopenbox only ignore horizontal and vertical scroll events when outside a menu frame, not all buttons above 3 --- diff --git a/openbox/event.c b/openbox/event.c index a36e9223..ec258bbb 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -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,