X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fgroup.c;h=c0ba6ed71432075bbd3077a691102cb9e8d19ef4;hb=8b23b1a5b47a9b75532ada2a52cf6a2b9bd34458;hp=f70b84b742c40f0076e4cdf470e8e6c8ef213d30;hpb=2442cdfd85e5229c7ee4ac49ca66a7d55ffcb919;p=chaz%2Fopenbox diff --git a/openbox/group.c b/openbox/group.c index f70b84b7..c0ba6ed7 100644 --- a/openbox/group.c +++ b/openbox/group.c @@ -19,17 +19,17 @@ #include "group.h" #include "client.h" -GHashTable *group_map = NULL; +static GHashTable *group_map; -static guint map_hash(Window *w) { return *w; } -static gboolean map_key_comp(Window *w1, Window *w2) { return *w1 == *w2; } +static guint window_hash(Window *w) { return *w; } +static gboolean window_comp(Window *w1, Window *w2) { return *w1 == *w2; } void group_startup(gboolean reconfig) { if (reconfig) return; - group_map = g_hash_table_new((GHashFunc)map_hash, - (GEqualFunc)map_key_comp); + group_map = g_hash_table_new((GHashFunc)window_hash, + (GEqualFunc)window_comp); } void group_shutdown(gboolean reconfig)