From 72c00f39c14806fe1bc60219886c867c4c518e9f Mon Sep 17 00:00:00 2001 From: ocornut Date: Mon, 15 Sep 2025 19:16:05 +0200 Subject: [PATCH] Backends: GLFW: fix ImGui_ImplGlfw_IsWayland() amend broken 10d0162. (#8921, #8920) Accidentally broke this while shuffling code... --- backends/imgui_impl_glfw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/imgui_impl_glfw.cpp b/backends/imgui_impl_glfw.cpp index 8e391b44a..5a897eed8 100644 --- a/backends/imgui_impl_glfw.cpp +++ b/backends/imgui_impl_glfw.cpp @@ -231,7 +231,7 @@ static ImGui_ImplGlfw_Data* ImGui_ImplGlfw_GetBackendData(GLFWwindow* window) // Functions static bool ImGui_ImplGlfw_IsWayland() { -#if GLFW_HAS_X11_OR_WAYLAND +#if !GLFW_HAS_X11_OR_WAYLAND return false; #elif GLFW_HAS_GETPLATFORM return glfwGetPlatform() == GLFW_PLATFORM_WAYLAND;