From 2c4fef29957ecfdfab8bda68d8d3fdf5a2a21324 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 19 May 2007 19:18:52 +0000 Subject: [PATCH] fix flashy menus --- openbox/event.c | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.39.2