]> Dogcows Code - chaz/openbox/commitdiff
remove windows from the hash on hide, dont readd them again!
authorDana Jansens <danakj@orodu.net>
Mon, 23 Apr 2007 01:54:35 +0000 (01:54 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 23 Apr 2007 01:54:35 +0000 (01:54 +0000)
openbox/menuframe.c

index 2e54ef88cde6dd167e8a82ad9b53948c3b951357..4cb2083dc1c7294b4d73114d322a136594beea22 100644 (file)
@@ -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);
This page took 0.031776 seconds and 4 git commands to generate.