Win32 update monitor handles when monitors are added or removed

This commit is contained in:
Doug Binks 2020-09-04 16:59:08 +01:00
parent bb1d917c2f
commit 824c4cb651

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