Selaa lähdekoodia

X11: Expose zero monitor for functional headless

Fixes #1147.
Camilla Löwy 7 vuotta sitten
vanhempi
commit
30489c5aa1
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  1. 1 2
      src/x11_monitor.c

+ 1 - 2
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);