ecore-wl2: Add display to global event structure
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
84a01216e7
commit
41f6e1f505
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue