summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}