From c3250be690f491701b0af957fa7d03aa1f4f5cc5 Mon Sep 17 00:00:00 2001 From: Doug Binks Date: Fri, 4 Sep 2020 16:59:08 +0100 Subject: [PATCH] Win32: Update all monitor handles on config change Closes #1761. (cherry picked from commit fecd711e0bc9779c379f00e63c1ab7a5081e1954) --- src/win32_monitor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/win32_monitor.c b/src/win32_monitor.c index 4f5af36a..c8bae359 100644 --- a/src/win32_monitor.c +++ b/src/win32_monitor.c @@ -185,6 +185,8 @@ void _glfwPollMonitorsWin32(void) display.DeviceName) == 0) { disconnected[i] = NULL; + // handle may have changed, update + EnumDisplayMonitors(NULL, NULL, monitorCallback, (LPARAM) _glfw.monitors[i]); break; } }