diff options
| author | Mikael Magnusson <mikachu@gmail.com> | 2010-01-18 16:48:00 +0100 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2010-01-28 08:40:07 -0500 |
| commit | 0cd6f4e43c355ef6b568c769a4ecb2983d5f3fa6 (patch) | |
| tree | 7ea6ffc1f845c3e0a3fffa336010ab1d9d224d52 /openbox/menu.c | |
| parent | 7cfaae8da9271a7bad4c73886c894a14cbf456e7 (diff) | |
Add a hook to unset the client in the open menu frame instead of closing it
Also nukes menu_frame_hide_all_client() as it is now unused.
Diffstat (limited to 'openbox/menu.c')
| -rw-r--r-- | openbox/menu.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/openbox/menu.c b/openbox/menu.c index 634a0d9c..ac28ade9 100644 --- a/openbox/menu.c +++ b/openbox/menu.c @@ -58,13 +58,6 @@ static gunichar parse_shortcut(const gchar *label, gboolean allow_shortcut, gchar **strippedlabel, guint *position, gboolean *always_show); -static void client_dest(ObClient *client, gpointer data) -{ - /* menus can be associated with a client, so close any that are since - we are disappearing now */ - menu_frame_hide_all_client(client); -} - void menu_startup(gboolean reconfig) { gboolean loaded = FALSE; @@ -114,16 +107,10 @@ void menu_startup(gboolean reconfig) } g_assert(menu_parse_state.parent == NULL); - - if (!reconfig) - client_add_destroy_notify(client_dest, NULL); } void menu_shutdown(gboolean reconfig) { - if (!reconfig) - client_remove_destroy_notify(client_dest); - obt_xml_instance_unref(menu_parse_inst); menu_parse_inst = NULL; |
