From c34ef4028e504b8ce862b9c2e47b284ab66717dd Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 28 Aug 2003 02:10:23 +0000 Subject: half way through the changes to new menu code/design. hot shit. static menus work, on to plugins next. --- openbox/client.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'openbox/client.c') diff --git a/openbox/client.c b/openbox/client.c index dcde212e..ab7c8049 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -350,13 +350,6 @@ void client_unmanage_all() client_unmanage(client_list->data); } -/* called by client_unmanage() to close any menus referencing this client */ -void client_close_menus(gpointer key, gpointer value, gpointer self) -{ - if (((ObMenu *)value)->client == (ObClient *)self) - menu_hide((ObMenu *)value); -} - void client_unmanage(ObClient *self) { guint j; @@ -413,9 +406,7 @@ void client_unmanage(ObClient *self) if (moveresize_client == self) moveresize_end(TRUE); - /* close any windows that are attached to this window */ - g_hash_table_foreach(menu_hash, client_close_menus, self); - + /* XXX close any windows that are attached to this window */ if (focus_client == self) { XEvent e; -- cgit v1.2.3