X11: Expose zero monitor for functional headless

Fixes #1147.
master
Camilla Löwy ago%!(EXTRA string=8 years)
parent 390a66d2e7
commit 30489c5aa1
  1. 3
      src/x11_monitor.c

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

Loading…
Cancel
Save