From 166611cef5967313e6a3d50849e57ddbcdc33f26 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. --- src/win32_monitor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/win32_monitor.c b/src/win32_monitor.c index 5f91c579..b4c53e4c 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; } }