From 0fee4e91a8e66c7d7f7f1694bfe7bc0fa9f505d7 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Wed, 2 May 2007 20:10:37 +0000 Subject: [PATCH] only ignore horizontal and vertical scroll events when outside a menu frame, not all buttons above 3 --- openbox/event.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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, -- 2.45.2