From 806a8c411f10c7a2292bfac15d77c8609f56ee71 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 3 Sep 2003 18:11:39 +0000 Subject: add a reconfigure action, also reconfigure on SIGUSR2. support reconfiguring throughout the entire codebase. --- openbox/group.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'openbox/group.c') diff --git a/openbox/group.c b/openbox/group.c index f6c86c5a..fe3fa575 100644 --- a/openbox/group.c +++ b/openbox/group.c @@ -6,14 +6,18 @@ GHashTable *group_map = NULL; static guint map_hash(Window *w) { return *w; } static gboolean map_key_comp(Window *w1, Window *w2) { return *w1 == *w2; } -void group_startup() +void group_startup(gboolean reconfig) { + if (reconfig) return; + group_map = g_hash_table_new((GHashFunc)map_hash, (GEqualFunc)map_key_comp); } -void group_shutdown() +void group_shutdown(gboolean reconfig) { + if (reconfig) return; + g_hash_table_destroy(group_map); } -- cgit v1.2.3