From: Sangjin Lee Date: Wed, 9 Aug 2017 08:38:33 +0000 (+0900) Subject: wl_desktop_shell: add impl for version 2 of tizen_surface X-Git-Tag: accepted/tizen/unified/20170811.021206~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F13%2F143313%2F4;p=platform%2Fupstream%2Fenlightenment.git wl_desktop_shell: add impl for version 2 of tizen_surface the destructor added to tizen_surface so add the implementation of server side Change-Id: I1fa70faf21c65a34cda2c43e4730ca2fd5da5369 --- diff --git a/src/modules/wl_desktop_shell/e_mod_main.c b/src/modules/wl_desktop_shell/e_mod_main.c index 6353601..5522d7f 100644 --- a/src/modules/wl_desktop_shell/e_mod_main.c +++ b/src/modules/wl_desktop_shell/e_mod_main.c @@ -1674,9 +1674,16 @@ _e_tz_surf_cb_tz_res_get(struct wl_client *client, struct wl_resource *resource, tizen_resource_send_resource_id(res, res_id); } +static void +_e_tz_surf_cb_destroy(struct wl_client *client, struct wl_resource *resource) +{ + wl_resource_destroy(resource); +} + static const struct tizen_surface_interface _e_tz_surf_interface = { _e_tz_surf_cb_tz_res_get, + _e_tz_surf_cb_destroy }; static void @@ -1686,7 +1693,7 @@ _e_tz_surf_cb_bind(struct wl_client *client, void *data, uint32_t version, uint3 if (!(res = wl_resource_create(client, &tizen_surface_interface, - MIN(version, 1), + MIN(version, 2), id))) { ERR("Could not create tizen_surface resource: %m"); @@ -1737,7 +1744,7 @@ e_modapi_init(E_Module *m) if (!wl_global_create(e_comp_wl->wl.disp, &tizen_surface_interface, - 1, + 2, e_comp->wl_comp_data, _e_tz_surf_cb_bind)) {