wl_desktop_shell: add impl for version 1 of tizen_surface
authorJunSeok, Kim <juns.kim@samsung.com>
Thu, 7 Sep 2017 11:34:53 +0000 (20:34 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Wed, 20 Sep 2017 04:31:34 +0000 (13:31 +0900)
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 6353601c30274d12a2d997d960f2615c91905fbf..a21311f434c39e485b58e51b523290a104b8884e 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),
+                                  version,
                                   id)))
      {
         ERR("Could not create tizen_surface resource: %m");