wl_desktop_shell: add impl for version 2 of tizen_surface 13/143313/4
authorSangjin Lee <lsj119@samsung.com>
Wed, 9 Aug 2017 08:38:33 +0000 (17:38 +0900)
committerJuyeon Lee <juyeonne.lee@samsung.com>
Thu, 10 Aug 2017 04:21:51 +0000 (04:21 +0000)
the destructor added to tizen_surface so add the implementation of server side

Change-Id: I1fa70faf21c65a34cda2c43e4730ca2fd5da5369

src/modules/wl_desktop_shell/e_mod_main.c

index 6353601..5522d7f 100644 (file)
@@ -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))
      {