From 91abf02613cd2ddb97be58b5b6703240320233a0 Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Wed, 10 Nov 2021 20:50:12 +0300 Subject: Only send wl_seat.name for version 2 seats --- Sources/Seat/OwlSeat.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Sources/Seat/OwlSeat.m b/Sources/Seat/OwlSeat.m index 1fa87bc..94cfa6e 100644 --- a/Sources/Seat/OwlSeat.m +++ b/Sources/Seat/OwlSeat.m @@ -77,7 +77,10 @@ static void seat_destroy(struct wl_resource *resource) { resource, WL_SEAT_CAPABILITY_POINTER | WL_SEAT_CAPABILITY_KEYBOARD ); - wl_seat_send_name(resource, "seat0"); + + if (wl_resource_get_version(resource) >= 2) { + wl_seat_send_name(resource, "seat0"); + } return self; } -- cgit v1.2.3