From b2d4dd128da10238e547629e51f493c8be04d2ea Mon Sep 17 00:00:00 2001 From: Hynak Date: Fri, 25 Feb 2022 14:27:56 -0500 Subject: [PATCH] Hide GLFW for X Render --- main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.cpp b/main.cpp index dd221b4..0cc523f 100644 --- a/main.cpp +++ b/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