From 59f0aef4380aa11c7ab91defcfa0613eaea7f817 Mon Sep 17 00:00:00 2001 From: Robert Mader Date: Mon, 17 Aug 2020 01:51:20 +0200 Subject: [PATCH] wayland/seat: Add seat_release interface Without this calling wl_seat.release would crash Mutter. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1409 --- src/wayland/meta-wayland-seat.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/wayland/meta-wayland-seat.c b/src/wayland/meta-wayland-seat.c index 3a76a1b5b..206138152 100644 --- a/src/wayland/meta-wayland-seat.c +++ b/src/wayland/meta-wayland-seat.c @@ -74,10 +74,18 @@ seat_get_touch (struct wl_client *client, meta_wayland_touch_create_new_resource (touch, client, resource, id); } +static void +seat_release (struct wl_client *client, + struct wl_resource *resource) +{ + wl_resource_destroy (resource); +} + static const struct wl_seat_interface seat_interface = { seat_get_pointer, seat_get_keyboard, - seat_get_touch + seat_get_touch, + seat_release }; static void