From a1bcf075992c9b32bab8291c4319964347d8ad45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sun, 17 Feb 2019 12:32:46 +0100 Subject: [PATCH] bar/wayland: drop wl_seat interface version requirement to 1 This allows us to drop the empty 'name' handler. --- bar/wayland.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/bar/wayland.c b/bar/wayland.c index 9641fc2..25d4b15 100644 --- a/bar/wayland.c +++ b/bar/wayland.c @@ -238,14 +238,8 @@ 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 @@ -377,7 +371,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, 3); + backend->seat = wl_registry_bind(registry, name, &wl_seat_interface, 1); wl_seat_add_listener(backend->seat, &seat_listener, backend); wl_display_roundtrip(backend->display); }