don't arbitrarily bind version=1 for wl extension resources
This commit is contained in:
parent
c1cf0249a0
commit
541e33fc73
|
@ -967,11 +967,11 @@ e_comp_wl_extension_action_route_interface_get(int *version)
|
||||||
|
|
||||||
#define GLOBAL_BIND_CB(NAME, IFACE, ...) \
|
#define GLOBAL_BIND_CB(NAME, IFACE, ...) \
|
||||||
static void \
|
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; \
|
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);\
|
ERR("Could not create %s interface", #NAME);\
|
||||||
wl_client_post_no_memory(client);\
|
wl_client_post_no_memory(client);\
|
||||||
|
|
Loading…
Reference in New Issue