X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fgroup.c;h=fe3fa57532203e171b0bdf2a30a012d4680efd78;hb=c1b2fc5324522f74a14a5cfa210c95e1509a6e7f;hp=f6c86c5a5aa63552cf3c4abb43008351f5f7b4a2;hpb=5be23ec5a4dcacb8b1adf1d352ad5600f426f3ed;p=chaz%2Fopenbox 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); }