ecore-wl2: Add display to global event structure

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-09-30 12:43:41 -04:00
parent 84a01216e7
commit 41f6e1f505
2 changed files with 3 additions and 0 deletions

View 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;

View 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);