make mouse clicks higher up in the menu select the submenu
This commit is contained in:
parent
f8aab34e52
commit
0299cdedd7
1 changed files with 3 additions and 0 deletions
|
@ -1682,8 +1682,11 @@ static gboolean event_handle_menu(XEvent *ev)
|
||||||
{
|
{
|
||||||
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_frame_select(e->frame, e, TRUE);
|
||||||
menu_entry_frame_execute(e, ev->xbutton.state,
|
menu_entry_frame_execute(e, ev->xbutton.state,
|
||||||
ev->xbutton.time);
|
ev->xbutton.time);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
menu_frame_hide_all();
|
menu_frame_hide_all();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue