diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-04-23 01:54:35 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-04-23 01:54:35 +0000 |
| commit | 58dc86971a86b5f843fc93bba2dd8882f60c41a0 (patch) | |
| tree | ddca0106716065699b483c318628ca28406b25db /openbox/menuframe.c | |
| parent | 66c350763fa85cfda0b6561ace9c032d3aa03b71 (diff) | |
remove windows from the hash on hide, dont readd them again!
Diffstat (limited to 'openbox/menuframe.c')
| -rw-r--r-- | openbox/menuframe.c | 8 |
1 files changed, 4 insertions, 4 deletions
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); |
