From d2787cc2d8484cf4eb532a60a9bb0980aada7f85 Mon Sep 17 00:00:00 2001 From: dejor <71755747+dejor@users.noreply.github.com> Date: Sun, 4 Jun 2023 12:45:33 +0200 Subject: [PATCH] fix: typo to avoid null pointer --- src/modules/dwl/tags.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/dwl/tags.cpp b/src/modules/dwl/tags.cpp index 6a3d4ee6..7faa5c52 100644 --- a/src/modules/dwl/tags.cpp +++ b/src/modules/dwl/tags.cpp @@ -72,7 +72,7 @@ static void handle_global(void *data, struct wl_registry *registry, uint32_t nam const char *interface, uint32_t version) { if (std::strcmp(interface, zdwl_ipc_manager_v2_interface.name) == 0) { static_cast(data)->status_manager_ = static_cast( - (zdwl_ipc_manager_v2 *)wl_registry_bind(registry, name, &zdwl_ipc_manager_v2_interface, 3)); + (zdwl_ipc_manager_v2 *)wl_registry_bind(registry, name, &zdwl_ipc_manager_v2_interface, 1)); } if (std::strcmp(interface, wl_seat_interface.name) == 0) { version = std::min(version, 1);