Win32: Update all monitor handles on config change

Closes #1761.
This commit is contained in:
Doug Binks 2020-09-04 16:59:08 +01:00 committed by Camilla Löwy
parent 0b2660f39f
commit 166611cef5

View File

@ -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;
}
}