From 2e810d575cb5c8708340f53e301424c237ebca80 Mon Sep 17 00:00:00 2001 From: omar Date: Fri, 26 May 2023 13:41:45 +0200 Subject: [PATCH] Backends: GLFW: Fix breaking typo 19b436f68 (#5683, #6459) --- 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 bd9f32b6a..ca468b8e2 100644 --- a/backends/imgui_impl_glfw.cpp +++ b/backends/imgui_impl_glfw.cpp @@ -881,7 +881,7 @@ static void ImGui_ImplGlfw_UpdateMonitors() int monitors_count = 0; GLFWmonitor** glfw_monitors = glfwGetMonitors(&monitors_count); - if (monitors_count) // Preserve existing monitor list if there are none. Happens on macOS sleeping (#5683) + if (monitors_count == 0) // Preserve existing monitor list if there are none. Happens on macOS sleeping (#5683) return; platform_io.Monitors.resize(0);