fix flashy menus

This commit is contained in:
Dana Jansens 2007-05-19 19:18:52 +00:00
parent 4305448a62
commit 2c4fef2995

View file

@ -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)