1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-10-07 22:57:25 -04:00

X11: Expose zero monitor for functional headless

Fixes #1147.
This commit is contained in:
Camilla Löwy 2017-11-28 14:37:49 +01:00
parent 390a66d2e7
commit 30489c5aa1

View File

@ -203,8 +203,7 @@ void _glfwPollMonitorsX11(void)
free(disconnected);
}
if (!_glfw.monitorCount)
else
{
const int widthMM = DisplayWidthMM(_glfw.x11.display, _glfw.x11.screen);
const int heightMM = DisplayHeightMM(_glfw.x11.display, _glfw.x11.screen);