input: Implement wl_seat.release

Avoid a crash because listener is NULL.

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
Reviewed-By: David Fort <contact@hardening-consulting.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
dev
Quentin Glidic 9 years ago committed by Pekka Paalanen
parent 7a5c562d1a
commit aab1d36883
  1. 7
      src/input.c

@ -2230,10 +2230,17 @@ seat_get_touch(struct wl_client *client, struct wl_resource *resource,
seat, unbind_resource);
}
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_release,
};
static void

Loading…
Cancel
Save