From 8a1e9c64d86b0a21db9edfe6b6a7221f07c1e5f5 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 29 Aug 2003 17:17:07 +0000 Subject: [PATCH] dont ungrab twice when hiding menus --- openbox/menuframe.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openbox/menuframe.c b/openbox/menuframe.c index 811d4c05..34c7fd85 100644 --- a/openbox/menuframe.c +++ b/openbox/menuframe.c @@ -407,6 +407,7 @@ static void menu_frame_update(ObMenuFrame *self) { GList *mit, *fit; + menu_pipe_execute(self->menu); menu_find_submenus(self->menu); self->selected = NULL; @@ -480,8 +481,6 @@ void menu_frame_hide(ObMenuFrame *self) if (!it) return; - menu_frame_visible = g_list_delete_link(menu_frame_visible, it); - if (self->child) menu_frame_hide(self->child); @@ -495,6 +494,8 @@ void menu_frame_hide(ObMenuFrame *self) grab_keyboard(FALSE); } + menu_frame_visible = g_list_delete_link(menu_frame_visible, it); + XUnmapWindow(ob_display, self->window); menu_frame_free(self); -- 2.45.2