diff --git a/src/wl_window.c b/src/wl_window.c index 482d90c6..fd625dbe 100644 --- a/src/wl_window.c +++ b/src/wl_window.c @@ -792,12 +792,6 @@ static GLFWbool createNativeSurface(_GLFWwindow* window, if (!window->wl.transparent) setContentAreaOpaque(window); - if (window->monitor || wndconfig->visible) - { - if (!createShellObjects(window)) - return GLFW_FALSE; - } - return GLFW_TRUE; } @@ -1903,6 +1897,12 @@ int _glfwPlatformCreateWindow(_GLFWwindow* window, return GLFW_FALSE; } + if (window->monitor || wndconfig->visible) + { + if (!createShellObjects(window)) + return GLFW_FALSE; + } + return GLFW_TRUE; }