From 4a5833c0ba31f85a3006ecaca2fc02bdd33c843d Mon Sep 17 00:00:00 2001 From: Peter Wilhelmsson <2hdddg@gmail.com> Date: Sun, 21 Jan 2024 17:15:59 +0100 Subject: [PATCH] Bad wl_output version, no name received --- src/Registry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Registry.cpp b/src/Registry.cpp index 94ba243..7688a72 100644 --- a/src/Registry.cpp +++ b/src/Registry.cpp @@ -16,7 +16,7 @@ // - wl_shm -> version 1 // - zwlr_layer_shell version 4 // - wl_seat version 5 -// - wl_output version 3 +// - wl_output version 4 // - wl_compositor version 4 void Registry::Register(struct wl_registry *registry, uint32_t name, const char *interface, uint32_t version) { @@ -41,7 +41,7 @@ void Registry::Register(struct wl_registry *registry, uint32_t name, const char this->compositor = (wl_compositor *)wl_registry_bind( registry, name, &wl_compositor_interface, wanted_version); } else if (interface == std::string_view(wl_output_interface.name)) { - wanted_version = 3; + wanted_version = 4; build_version = wl_output_interface.version; auto output = (wl_output *)wl_registry_bind(registry, name, &wl_output_interface, wanted_version);