store global wayland data manager resource

This commit is contained in:
Mike Blumenkrantz 2015-08-06 19:06:36 -04:00
parent aa5788175b
commit 9740477615
2 changed files with 2 additions and 1 deletions

View File

@ -183,6 +183,7 @@ struct _E_Comp_Wl_Data
struct
{
struct wl_global *global;
struct wl_resource *resource;
Eina_Hash *data_resources;
} mgr;

View File

@ -430,7 +430,7 @@ _e_comp_wl_data_cb_bind_manager(struct wl_client *client, void *data EINA_UNUSED
struct wl_resource *res;
/* try to create data manager resource */
res = wl_resource_create(client, &wl_data_device_manager_interface, 1, id);
e_comp->wl_comp_data->mgr.resource = res = wl_resource_create(client, &wl_data_device_manager_interface, 1, id);
if (!res)
{
ERR("Could not create data device manager: %m");