From 60205c1348e2ffa1428c81c50b12602e5b666a0e Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 4 May 2023 18:10:10 +0300 Subject: [PATCH] backends/wayland: Fix wl_seat version It should be 5. --- src/backends/wayland/wayland_display.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/wayland/wayland_display.cpp b/src/backends/wayland/wayland_display.cpp index 5e622f82a5..27d0fc3110 100644 --- a/src/backends/wayland/wayland_display.cpp +++ b/src/backends/wayland/wayland_display.cpp @@ -307,7 +307,7 @@ void WaylandDisplay::registry_global(void *data, wl_registry *registry, uint32_t display->m_shm = static_cast(wl_registry_bind(registry, name, &wl_shm_interface, std::min(version, 1u))); } else if (strcmp(interface, wl_seat_interface.name) == 0) { display->m_seat = std::make_unique(); - display->m_seat->setup(static_cast(wl_registry_bind(registry, name, &wl_seat_interface, std::min(version, 2u)))); + display->m_seat->setup(static_cast(wl_registry_bind(registry, name, &wl_seat_interface, std::min(version, 5u)))); } else if (strcmp(interface, xdg_wm_base_interface.name) == 0) { display->m_xdgShell = std::make_unique(); display->m_xdgShell->setup(static_cast(wl_registry_bind(registry, name, &xdg_wm_base_interface, std::min(version, 1u))));