mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-07-15 05:42:23 +08:00
Hide GLFW for X Render
This commit is contained in:
parent
c11c6928ea
commit
b2d4dd128d
4
main.cpp
4
main.cpp
@ -160,6 +160,10 @@ int main (int argc, char* argv[])
|
|||||||
glfwWindowHint (GLFW_CONTEXT_VERSION_MAJOR, 2);
|
glfwWindowHint (GLFW_CONTEXT_VERSION_MAJOR, 2);
|
||||||
glfwWindowHint (GLFW_CONTEXT_VERSION_MINOR, 1);
|
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 ();
|
auto containers = new WallpaperEngine::Assets::CCombinedContainer ();
|
||||||
|
|
||||||
// update the used path with the full one
|
// update the used path with the full one
|
||||||
|
Loading…
Reference in New Issue
Block a user