aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--types/seat/wlr_seat.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/types/seat/wlr_seat.c b/types/seat/wlr_seat.c
index 5fd02645..879a7513 100644
--- a/types/seat/wlr_seat.c
+++ b/types/seat/wlr_seat.c
@@ -254,8 +254,13 @@ struct wlr_seat *wlr_seat_create(struct wl_display *display, const char *name) {
seat->touch_state.seat = seat;
wl_list_init(&seat->touch_state.touch_points);
+ // TODO: always use SEAT_VERSION (requires libwayland 1.17)
+ uint32_t version = SEAT_VERSION;
+ if (wl_seat_interface.version < SEAT_VERSION) {
+ version = wl_seat_interface.version;
+ }
seat->global = wl_global_create(display, &wl_seat_interface,
- SEAT_VERSION, seat, seat_handle_bind);
+ version, seat, seat_handle_bind);
if (seat->global == NULL) {
free(touch_grab);
free(pointer_grab);