From: Dana Jansens Date: Mon, 23 Apr 2007 01:54:35 +0000 (+0000) Subject: remove windows from the hash on hide, dont readd them again! X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=58dc86971a86b5f843fc93bba2dd8882f60c41a0;p=chaz%2Fopenbox remove windows from the hash on hide, dont readd them again! --- diff --git a/openbox/menuframe.c b/openbox/menuframe.c index 2e54ef88..4cb2083d 100644 --- a/openbox/menuframe.c +++ b/openbox/menuframe.c @@ -174,15 +174,15 @@ static void menu_entry_frame_free(ObMenuEntryFrame *self) if (self) { XDestroyWindow(ob_display, self->text); XDestroyWindow(ob_display, self->window); - g_hash_table_insert(menu_frame_map, &self->text, self); - g_hash_table_insert(menu_frame_map, &self->window, self); + g_hash_table_remove(menu_frame_map, &self->text); + g_hash_table_remove(menu_frame_map, &self->window); if (self->entry->type == OB_MENU_ENTRY_TYPE_NORMAL) { XDestroyWindow(ob_display, self->icon); - g_hash_table_insert(menu_frame_map, &self->icon, self); + g_hash_table_remove(menu_frame_map, &self->icon); } if (self->entry->type == OB_MENU_ENTRY_TYPE_SUBMENU) { XDestroyWindow(ob_display, self->bullet); - g_hash_table_insert(menu_frame_map, &self->bullet, self); + g_hash_table_remove(menu_frame_map, &self->bullet); } RrAppearanceFree(self->a_normal);