From fe709bd82b81a3b3aba15cda0b6d7344e529e349 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Mon, 18 Feb 2019 21:43:44 +0100 Subject: [PATCH] Revert "bar/wayland: drop wl_seat interface version requirement to 1" This reverts commit a1bcf075992c9b32bab8291c4319964347d8ad45. --- bar/wayland.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bar/wayland.c b/bar/wayland.c index 0d06f4a..e9ede69 100644 --- a/bar/wayland.c +++ b/bar/wayland.c @@ -238,8 +238,14 @@ seat_handle_capabilities(void *data, struct wl_seat *wl_seat, } } +static void +seat_handle_name(void *data, struct wl_seat *wl_seat, const char *name) +{ +} + static const struct wl_seat_listener seat_listener = { .capabilities = seat_handle_capabilities, + .name = seat_handle_name, }; static void @@ -371,7 +377,7 @@ handle_global(void *data, struct wl_registry *registry, } else if (strcmp(interface, wl_seat_interface.name) == 0) { - backend->seat = wl_registry_bind(registry, name, &wl_seat_interface, 1); + backend->seat = wl_registry_bind(registry, name, &wl_seat_interface, 3); wl_seat_add_listener(backend->seat, &seat_listener, backend); wl_display_roundtrip(backend->display); }