neuswc

patched neuswc library (tracked)
git clone https://git.daat.foo/neuswc.git
Log | Files | Refs | README | LICENSE

commit cabf36964f3461871408a050b4d9fa471f01ad11
parent 128a997d1102cd08a2185922b65bda54cb91e339
Author: Michael Forney <mforney@mforney.org>
Date:   Sun,  1 Jan 2017 05:27:31 -0800

subcompositor: Add destroy()

This is still just a stub, but avoids a crash if something calls destroy().

Diffstat:
Mlibswc/subcompositor.c | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/libswc/subcompositor.c b/libswc/subcompositor.c @@ -29,6 +29,12 @@ static struct wl_global *global; static void +destroy(struct wl_client *client, struct wl_resource *resource) +{ + wl_resource_destroy(resource); +} + +static void get_subsurface(struct wl_client *client, struct wl_resource *resource, uint32_t id, struct wl_resource *surface_resource, struct wl_resource *parent_resource) { @@ -43,6 +49,7 @@ get_subsurface(struct wl_client *client, struct wl_resource *resource, } static struct wl_subcompositor_interface subcompositor_implementation = { + .destroy = destroy, .get_subsurface = get_subsurface, };