From 1fb198410e9d3ca660d91d1049249db0f2f47732 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 21 Dec 2009 09:51:11 -0500 Subject: [PATCH] A fix for delayed hiding of submenus. It fixes this: (Mikachu) dana: i think his issue was if you have a menu with two submenus s1 and s2, open the s1 submenu, then point to s2 and go into s1, then after the delay, s1 is hidden despite you being inside it still, because s2 was never unselected --- openbox/event.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/openbox/event.c b/openbox/event.c index a0d26ab..bbe7038 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -1838,8 +1838,7 @@ static gboolean event_handle_menu(XEvent *ev) 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) + (f = find_active_menu()) && f->selected == e) { ObMenuEntryFrame *u = menu_entry_frame_under(ev->xcrossing.x_root, ev->xcrossing.y_root); -- 1.9.1