only ignore horizontal and vertical scroll events when outside a menu frame, not all buttons above 3
This commit is contained in:
parent
ee3d1b7d64
commit
0fee4e91a8
1 changed files with 3 additions and 1 deletions
|
@ -1365,7 +1365,9 @@ static gboolean event_handle_menu(XEvent *ev)
|
||||||
|
|
||||||
switch (ev->type) {
|
switch (ev->type) {
|
||||||
case ButtonRelease:
|
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,
|
if ((e = menu_entry_frame_under(ev->xbutton.x_root,
|
||||||
ev->xbutton.y_root)))
|
ev->xbutton.y_root)))
|
||||||
menu_entry_frame_execute(e, ev->xbutton.state,
|
menu_entry_frame_execute(e, ev->xbutton.state,
|
||||||
|
|
Loading…
Reference in a new issue