devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=41f6e1f50523c45b037871fcf175521600d5e590

commit 41f6e1f50523c45b037871fcf175521600d5e590
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Wed Sep 30 12:43:41 2015 -0400

    ecore-wl2: Add display to global event structure
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_wl2/Ecore_Wl2.h         | 1 +
 src/lib/ecore_wl2/ecore_wl2_display.c | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h
index 7ab1f7a..017e160 100644
--- a/src/lib/ecore_wl2/Ecore_Wl2.h
+++ b/src/lib/ecore_wl2/Ecore_Wl2.h
@@ -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;
diff --git a/src/lib/ecore_wl2/ecore_wl2_display.c 
b/src/lib/ecore_wl2/ecore_wl2_display.c
index 877ddde..8a739dd 100644
--- a/src/lib/ecore_wl2/ecore_wl2_display.c
+++ b/src/lib/ecore_wl2/ecore_wl2_display.c
@@ -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);
 

-- 


Reply via email to