1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-12 00:14:20 +00:00

Update GLFW backend X11 and WL detection

This commit is contained in:
Aleksandr 2025-09-29 14:17:41 +03:00 committed by GitHub
parent 3470e6112b
commit 3d5500a413
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -117,7 +117,8 @@
#define GLFW_EXPOSE_NATIVE_COCOA
#endif
#include <GLFW/glfw3native.h>
#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