Explorar o código

Hide GLFW for X Render

Hynak %!s(int64=4) %!d(string=hai) anos
pai
achega
b2d4dd128d
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      main.cpp

+ 4 - 0
main.cpp

@@ -160,6 +160,10 @@ int main (int argc, char* argv[])
     glfwWindowHint (GLFW_CONTEXT_VERSION_MAJOR, 2);
     glfwWindowHint (GLFW_CONTEXT_VERSION_MINOR, 1);
 
+    // will hide the window if we are drawing to X
+    if (!screens.empty())
+        glfwWindowHint(GLFW_VISIBLE, GLFW_FALSE);
+
     auto containers = new WallpaperEngine::Assets::CCombinedContainer ();
 
     // update the used path with the full one