summaryrefslogtreecommitdiff
path: root/src/wayland/meta-wayland-seat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wayland/meta-wayland-seat.c')
-rw-r--r--src/wayland/meta-wayland-seat.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/wayland/meta-wayland-seat.c b/src/wayland/meta-wayland-seat.c
index 2d5f0fbb9..f5e3867a4 100644
--- a/src/wayland/meta-wayland-seat.c
+++ b/src/wayland/meta-wayland-seat.c
@@ -115,8 +115,16 @@ pointer_set_cursor (struct wl_client *client,
meta_wayland_seat_update_cursor_surface (seat);
}
+static void
+pointer_release (struct wl_client *client,
+ struct wl_resource *resource)
+{
+ wl_resource_destroy (resource);
+}
+
static const struct wl_pointer_interface pointer_interface = {
- pointer_set_cursor
+ pointer_set_cursor,
+ pointer_release,
};
static void
@@ -138,6 +146,17 @@ seat_get_pointer (struct wl_client *client,
}
static void
+keyboard_release (struct wl_client *client,
+ struct wl_resource *resource)
+{
+ wl_resource_destroy (resource);
+}
+
+static const struct wl_keyboard_interface keyboard_interface = {
+ keyboard_release,
+};
+
+static void
seat_get_keyboard (struct wl_client *client,
struct wl_resource *resource,
uint32_t id)