commit cabf369
Michael Forney
·
2017-01-01 13:27:31 +0000 UTC
parent 128a997
subcompositor: Add destroy() This is still just a stub, but avoids a crash if something calls destroy().
1 files changed,
+7,
-0
+7,
-0
1@@ -28,6 +28,12 @@
2
3 static struct wl_global *global;
4
5+static void
6+destroy(struct wl_client *client, struct wl_resource *resource)
7+{
8+ wl_resource_destroy(resource);
9+}
10+
11 static void
12 get_subsurface(struct wl_client *client, struct wl_resource *resource,
13 uint32_t id, struct wl_resource *surface_resource, struct wl_resource *parent_resource)
14@@ -43,6 +49,7 @@ get_subsurface(struct wl_client *client, struct wl_resource *resource,
15 }
16
17 static struct wl_subcompositor_interface subcompositor_implementation = {
18+ .destroy = destroy,
19 .get_subsurface = get_subsurface,
20 };
21