don't arbitrarily bind version=1 for wl extension resources

This commit is contained in:
Mike Blumenkrantz 2017-08-04 16:23:39 -04:00
parent 4ba2333344
commit d5251d3b5a
1 changed files with 2 additions and 2 deletions

View File

@ -227,11 +227,11 @@ static const struct www_interface _e_www_interface =
#define GLOBAL_BIND_CB(NAME, IFACE, ...) \
static void \
_e_comp_wl_##NAME##_cb_bind(struct wl_client *client, void *data EINA_UNUSED, uint32_t version EINA_UNUSED, uint32_t id) \
_e_comp_wl_##NAME##_cb_bind(struct wl_client *client, void *data EINA_UNUSED, uint32_t version, uint32_t id) \
{ \
struct wl_resource *res; \
\
if (!(res = wl_resource_create(client, &(IFACE), 1, id))) \
if (!(res = wl_resource_create(client, &(IFACE), version, id))) \
{ \
ERR("Could not create %s interface", #NAME);\
wl_client_post_no_memory(client);\