ecore-wl2: Add display to global event structure
authorChris Michael <cp.michael@samsung.com>
Wed, 30 Sep 2015 16:43:41 +0000 (12:43 -0400)
committerChris Michael <cp.michael@samsung.com>
Thu, 3 Dec 2015 17:02:40 +0000 (12:02 -0500)
Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/ecore_wl2/Ecore_Wl2.h
src/lib/ecore_wl2/ecore_wl2_display.c

index 7ab1f7a..017e160 100644 (file)
@@ -44,6 +44,7 @@ typedef struct _Ecore_Wl2_Global
 
 typedef struct _Ecore_Wl2_Event_Global
 {
+   Ecore_Wl2_Display *display;
    Eina_Stringshare *interface;
    unsigned int id, version;
 } Ecore_Wl2_Event_Global;
index 877ddde..8a739dd 100644 (file)
@@ -97,6 +97,7 @@ _cb_global_add(void *data, struct wl_registry *registry, unsigned int id, const
    if (!ev) return;
 
    ev->id = id;
+   ev->display = ewd;
    ev->version = version;
    ev->interface = eina_stringshare_add(interface);
 
@@ -123,6 +124,7 @@ _cb_global_remove(void *data, struct wl_registry *registry EINA_UNUSED, unsigned
    if (!ev) return;
 
    ev->id = id;
+   ev->display = ewd;
    ev->version = global->version;
    ev->interface = eina_stringshare_add(global->interface);