Add code to create the clients window hash
authorChris Michael <cp.michael@samsung.com>
Wed, 15 Oct 2014 10:57:16 +0000 (06:57 -0400)
committerChris Michael <cp.michael@samsung.com>
Thu, 30 Oct 2014 14:39:06 +0000 (10:39 -0400)
Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/bin/e_comp_wl.c

index f29d08e..35be654 100644 (file)
@@ -12,6 +12,9 @@
  * 
  */
 
+/* local variables */
+static Eina_Hash *clients_win_hash = NULL;
+
 /* local functions */
 static void 
 _e_comp_wl_log_cb_print(const char *format, va_list args)
@@ -515,6 +518,9 @@ e_comp_wl_init(void)
         return EINA_FALSE;
      }
 
+   /* create hash to store clients */
+   clients_win_hash = eina_hash_int64_new(NULL);
+
    return EINA_TRUE;
 }
 
@@ -528,6 +534,9 @@ e_comp_wl_surface_create_signal_get(E_Comp *comp)
 EINTERN void 
 e_comp_wl_shutdown(void)
 {
+   /* free the clients win hash */
+   E_FREE_FUNC(clients_win_hash, eina_hash_free);
+
    /* shutdown ecore_wayland */
    ecore_wl_shutdown();
 }