X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fmenu.c;h=c52f30131b5b76d212ff6836061142d820ddf07b;hb=1d6e2c13573a6dcbcefd292b23130f3734cf2f1b;hp=75380f1eb42c3b2fb380136164150fc0c72dc63b;hpb=5e5fdb1666ac4877ca4d26f5ca565a299bc4cc42;p=chaz%2Fopenbox diff --git a/openbox/menu.c b/openbox/menu.c index 75380f1e..c52f3013 100644 --- a/openbox/menu.c +++ b/openbox/menu.c @@ -62,7 +62,7 @@ static void client_dest(gpointer client) menu_frame_hide_all_client(client); } -void menu_startup() +void menu_startup(gboolean reconfig) { xmlDocPtr doc; xmlNodePtr node; @@ -100,12 +100,14 @@ void menu_startup() g_assert(menu_parse_state.menus == NULL); - client_add_destructor(client_dest); + if (!reconfig) + client_add_destructor(client_dest); } -void menu_shutdown() +void menu_shutdown(gboolean reconfig) { - client_remove_destructor(client_dest); + if (!reconfig) + client_remove_destructor(client_dest); parse_shutdown(menu_parse_inst); menu_parse_inst = NULL;