diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h index 7ab1f7adb3..017e160942 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 877dddeaf4..8a739dd9a8 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);