diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2021-11-10 20:50:12 +0300 |
---|---|---|
committer | Sergey Bugaev <bugaevc@gmail.com> | 2021-11-10 20:50:12 +0300 |
commit | 91abf02613cd2ddb97be58b5b6703240320233a0 (patch) | |
tree | 24fa8e30be4800d063bed315ba811024ae7e809f | |
parent | 0ad40986dceae8f40d722ac2e154800a9c630522 (diff) |
-rw-r--r-- | Sources/Seat/OwlSeat.m | 5 |
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; } |