From: Dana Jansens Date: Sat, 19 May 2007 19:18:52 +0000 (+0000) Subject: fix flashy menus X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=2c4fef29957ecfdfab8bda68d8d3fdf5a2a21324;p=chaz%2Fopenbox fix flashy menus --- diff --git a/openbox/event.c b/openbox/event.c index a063bb8c..8f211202 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -1607,6 +1607,10 @@ static gboolean event_handle_menu(XEvent *ev) } break; 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)) && (f = find_active_menu()) && f->selected == e && e->entry->type != OB_MENU_ENTRY_TYPE_SUBMENU)