Wayland: Cleanup

This moves what is effectively showing the window to where that is done
on other platforms, i.e. last in the platform CreateWindow function.

(cherry picked from commit 74b4ceb835)
This commit is contained in:
Camilla Löwy 2022-06-21 19:48:28 +02:00
parent 758d4b1987
commit be333cf0fd

View File

@ -792,12 +792,6 @@ static GLFWbool createNativeSurface(_GLFWwindow* window,
if (!window->wl.transparent) if (!window->wl.transparent)
setContentAreaOpaque(window); setContentAreaOpaque(window);
if (window->monitor || wndconfig->visible)
{
if (!createShellObjects(window))
return GLFW_FALSE;
}
return GLFW_TRUE; return GLFW_TRUE;
} }
@ -1903,6 +1897,12 @@ int _glfwPlatformCreateWindow(_GLFWwindow* window,
return GLFW_FALSE; return GLFW_FALSE;
} }
if (window->monitor || wndconfig->visible)
{
if (!createShellObjects(window))
return GLFW_FALSE;
}
return GLFW_TRUE; return GLFW_TRUE;
} }