From 541e33fc73a863e9dcee12078c50964277451f17 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 4 Aug 2017 16:23:39 -0400 Subject: [PATCH] don't arbitrarily bind version=1 for wl extension resources --- src/bin/e_comp_wl_extensions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/e_comp_wl_extensions.c b/src/bin/e_comp_wl_extensions.c index 2d272dce6..ef9eae3d5 100644 --- a/src/bin/e_comp_wl_extensions.c +++ b/src/bin/e_comp_wl_extensions.c @@ -967,11 +967,11 @@ e_comp_wl_extension_action_route_interface_get(int *version) #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);\