commit fa87d67
shrub
·
2026-08-06 18:22:07 +0000 UTC
parent dacca88
bump wscons seat version to 5
1 files changed,
+4,
-3
+4,
-3
1@@ -177,6 +177,7 @@ static struct wl_seat_interface seat_impl = {
2 .get_pointer = get_pointer,
3 .get_keyboard = get_keyboard,
4 .get_touch = get_touch,
5+ .release = destroy_resource,
6 };
7
8 static void
9@@ -185,8 +186,8 @@ bind_seat(struct wl_client *client, void *data, uint32_t version, uint32_t id)
10 struct seat *seat = data;
11 struct wl_resource *resource;
12
13- if (version > 4) {
14- version = 4;
15+ if (version > 5) {
16+ version = 5;
17 }
18
19 resource = wl_resource_create(client, &wl_seat_interface, version, id);
20@@ -419,7 +420,7 @@ seat_create(struct wl_display *display, const char *seat_name)
21 }
22
23 seat->global =
24- wl_global_create(display, &wl_seat_interface, 4, seat, &bind_seat);
25+ wl_global_create(display, &wl_seat_interface, 5, seat, &bind_seat);
26 if (!seat->global) {
27 goto error2;
28 }