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); free(disconnected);
} }
else
if (!_glfw.monitorCount)
{ {
const int widthMM = DisplayWidthMM(_glfw.x11.display, _glfw.x11.screen); const int widthMM = DisplayWidthMM(_glfw.x11.display, _glfw.x11.screen);
const int heightMM = DisplayHeightMM(_glfw.x11.display, _glfw.x11.screen); const int heightMM = DisplayHeightMM(_glfw.x11.display, _glfw.x11.screen);