summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2021-11-10 20:50:12 +0300
committerSergey Bugaev <bugaevc@gmail.com>2021-11-10 20:50:12 +0300
commit91abf02613cd2ddb97be58b5b6703240320233a0 (patch)
tree24fa8e30be4800d063bed315ba811024ae7e809f
parent0ad40986dceae8f40d722ac2e154800a9c630522 (diff)
Only send wl_seat.name for version 2 seatsHEADtmp
-rw-r--r--Sources/Seat/OwlSeat.m5
1 files changed, 4 insertions, 1 deletions
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;
}