[mutter/gnome-3-36] wayland/seat: Add seat_release interface



commit e370ec6f31a7406f677e50c5acc437f247fa14bd
Author: Robert Mader <robert mader posteo de>
Date:   Mon Aug 17 01:51:20 2020 +0200

    wayland/seat: Add seat_release interface
    
    Without this calling wl_seat.release would crash Mutter.
    
    https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1409
    
    (cherry picked from commit 59f0aef4380aa11c7ab91defcfa0613eaea7f817)

 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 3a76a1b5b9..2061381520 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]