dont make motions in menus outside of the active menu, its child, and its parent, do anything
This commit is contained in:
parent
6a2010199b
commit
f8aab34e52
1 changed files with 9 additions and 2 deletions
|
@ -1692,7 +1692,10 @@ static gboolean event_handle_menu(XEvent *ev)
|
|||
if ((e = g_hash_table_lookup(menu_frame_map, &ev->xcrossing.window))) {
|
||||
if (e->ignore_enters)
|
||||
--e->ignore_enters;
|
||||
else
|
||||
else if (!(f = find_active_menu()) ||
|
||||
f == e->frame ||
|
||||
f->parent == e->frame ||
|
||||
f->child == e->frame)
|
||||
menu_frame_select(e->frame, e, FALSE);
|
||||
}
|
||||
break;
|
||||
|
@ -1711,6 +1714,10 @@ static gboolean event_handle_menu(XEvent *ev)
|
|||
case MotionNotify:
|
||||
if ((e = menu_entry_frame_under(ev->xmotion.x_root,
|
||||
ev->xmotion.y_root)))
|
||||
if (!(f = find_active_menu()) ||
|
||||
f == e->frame ||
|
||||
f->parent == e->frame ||
|
||||
f->child == e->frame)
|
||||
menu_frame_select(e->frame, e, FALSE);
|
||||
break;
|
||||
case KeyPress:
|
||||
|
|
Loading…
Reference in a new issue