fix flashy menus
This commit is contained in:
parent
4305448a62
commit
2c4fef2995
1 changed files with 4 additions and 0 deletions
|
@ -1607,6 +1607,10 @@ static gboolean event_handle_menu(XEvent *ev)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case LeaveNotify:
|
case LeaveNotify:
|
||||||
|
/*ignore leaves when we're already in the window */
|
||||||
|
if (ev->xcrossing.detail == NotifyInferior)
|
||||||
|
break;
|
||||||
|
|
||||||
if ((e = g_hash_table_lookup(menu_frame_map, &ev->xcrossing.window)) &&
|
if ((e = g_hash_table_lookup(menu_frame_map, &ev->xcrossing.window)) &&
|
||||||
(f = find_active_menu()) && f->selected == e &&
|
(f = find_active_menu()) && f->selected == e &&
|
||||||
e->entry->type != OB_MENU_ENTRY_TYPE_SUBMENU)
|
e->entry->type != OB_MENU_ENTRY_TYPE_SUBMENU)
|
||||||
|
|
Loading…
Reference in a new issue