From 3d5500a41318db0892f67920706dcf5334b4121a Mon Sep 17 00:00:00 2001 From: Aleksandr Date: Mon, 29 Sep 2025 14:17:41 +0300 Subject: [PATCH] Update GLFW backend X11 and WL detection --- backends/imgui_impl_glfw.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backends/imgui_impl_glfw.cpp b/backends/imgui_impl_glfw.cpp index cfe5dc6d3..895a003c8 100644 --- a/backends/imgui_impl_glfw.cpp +++ b/backends/imgui_impl_glfw.cpp @@ -117,7 +117,8 @@ #define GLFW_EXPOSE_NATIVE_COCOA #endif #include -#elif !defined(__EMSCRIPTEN__) +#elif !defined(__EMSCRIPTEN__) &&\ + (defined(unix) || defined(__unix) || defined(__unix__) || defined(__linux__) || defined(__linux) || defined(linux)) #ifndef GLFW_EXPOSE_NATIVE_X11 // for glfwGetX11Window() on Freedesktop (Linux, BSD, etc.) #define GLFW_EXPOSE_NATIVE_X11 #endif