summaryrefslogtreecommitdiff
path: root/openbox/client.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-08-28 02:10:23 +0000
committerDana Jansens <danakj@orodu.net>2003-08-28 02:10:23 +0000
commitc34ef4028e504b8ce862b9c2e47b284ab66717dd (patch)
tree5abae73563e8b11972a33e7f76867610f85db308 /openbox/client.c
parentcadab91e522c6426cc79df4f06e7c05232cb0a64 (diff)
half way through the changes to new menu code/design. hot shit. static menus work, on to plugins next.
Diffstat (limited to 'openbox/client.c')
-rw-r--r--openbox/client.c11
1 files changed, 1 insertions, 10 deletions
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;