1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-11 00:04:24 +00:00

Backends: GLFW: fix ImGui_ImplGlfw_IsWayland() amend broken 10d0162. (#8921, #8920)

Accidentally broke this while shuffling code...
This commit is contained in:
ocornut 2025-09-15 19:16:05 +02:00
parent 2675b7ca26
commit 72c00f39c1

View file

@ -231,7 +231,7 @@ static ImGui_ImplGlfw_Data* ImGui_ImplGlfw_GetBackendData(GLFWwindow* window)
// Functions // Functions
static bool ImGui_ImplGlfw_IsWayland() static bool ImGui_ImplGlfw_IsWayland()
{ {
#if GLFW_HAS_X11_OR_WAYLAND #if !GLFW_HAS_X11_OR_WAYLAND
return false; return false;
#elif GLFW_HAS_GETPLATFORM #elif GLFW_HAS_GETPLATFORM
return glfwGetPlatform() == GLFW_PLATFORM_WAYLAND; return glfwGetPlatform() == GLFW_PLATFORM_WAYLAND;