From 63e9fbc265118da8ee6ddb7aa18ddf1c30f93721 Mon Sep 17 00:00:00 2001 From: ocornut Date: Wed, 28 Jan 2026 14:51:21 +0100 Subject: [PATCH] Backends: GLFW: fix previous commit, would break multi-monitor. (#9195, #7902, #5683) Amend be2cfc2 --- 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 24b51045c..6f68bf4d2 100644 --- a/backends/imgui_impl_glfw.cpp +++ b/backends/imgui_impl_glfw.cpp @@ -1107,7 +1107,7 @@ static void ImGui_ImplGlfw_UpdateMonitors() // Happens on macOS sleeping (#5683) and seemingly occasionally on Windows (#9195) if (!updated_monitors) platform_io.Monitors.resize(0); - updated_monitors = false; + updated_monitors = true; platform_io.Monitors.push_back(monitor); } }