]> Dogcows Code - chaz/openbox/blobdiff - openbox/window.c
add support for _NET_WM_USER_TIME_WINDOW. round 1 ! ding.
[chaz/openbox] / openbox / window.c
index 7b3428bd8fce3b38c4b4c15a59641bfda9793c84..19b39c0912d4174650dcd3bcc12f5603cbed0caa 100644 (file)
 
 GHashTable *window_map;
 
+static guint window_hash(Window *w) { return *w; }
+static gboolean window_comp(Window *w1, Window *w2) { return *w1 == *w2; }
+
 void window_startup(gboolean reconfig)
 {
     if (reconfig) return;
 
-    window_map = g_hash_table_new(g_int_hash, g_int_equal);
+    window_map = g_hash_table_new((GHashFunc)window_hash,
+                                  (GEqualFunc)window_comp);
 }
 
 void window_shutdown(gboolean reconfig)
This page took 0.021588 seconds and 4 git commands to generate.