Ignore _glfwPlatformShowWindow when already visible
This commit is contained in:
parent
f710db6504
commit
4778d02c67
@ -816,12 +816,15 @@ void _glfwPlatformMaximizeWindow(_GLFWwindow* window)
|
|||||||
|
|
||||||
void _glfwPlatformShowWindow(_GLFWwindow* window)
|
void _glfwPlatformShowWindow(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
if (_glfw.wl.wmBase && !window->wl.xdg.toplevel)
|
if (!window->wl.visible)
|
||||||
|
{
|
||||||
|
if (_glfw.wl.wmBase)
|
||||||
createXdgSurface(window);
|
createXdgSurface(window);
|
||||||
else if (!window->wl.shellSurface)
|
else if (!window->wl.shellSurface)
|
||||||
createShellSurface(window);
|
createShellSurface(window);
|
||||||
window->wl.visible = GLFW_TRUE;
|
window->wl.visible = GLFW_TRUE;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void _glfwPlatformHideWindow(_GLFWwindow* window)
|
void _glfwPlatformHideWindow(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user