Skip to content

Commit

Permalink
Bad wl_output version, no name received
Browse files Browse the repository at this point in the history
  • Loading branch information
2hdddg committed Jan 21, 2024
1 parent 07a84c7 commit 4a5833c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Registry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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);
Expand Down

0 comments on commit 4a5833c

Please sign in to comment.