Skip to content

Commit

Permalink
Only send wl_seat.name for version 2 seats
Browse files Browse the repository at this point in the history
  • Loading branch information
bugaevc committed Nov 10, 2021
1 parent 0ad4098 commit 91abf02
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Sources/Seat/OwlSeat.m
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ - (id) initWithResource: (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;
}
Expand Down

0 comments on commit 91abf02

Please sign in to comment.