1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-26 12:18:51 -05:00

Ignore _glfwPlatformShowWindow when already visible

This commit is contained in:
Emmanuel Gil Peyrot 2018-01-04 21:55:36 +01:00 committed by linkmauve
parent f710db6504
commit 4778d02c67

View File

@ -816,11 +816,14 @@ void _glfwPlatformMaximizeWindow(_GLFWwindow* window)
void _glfwPlatformShowWindow(_GLFWwindow* window)
{
if (_glfw.wl.wmBase && !window->wl.xdg.toplevel)
createXdgSurface(window);
else if (!window->wl.shellSurface)
createShellSurface(window);
window->wl.visible = GLFW_TRUE;
if (!window->wl.visible)
{
if (_glfw.wl.wmBase)
createXdgSurface(window);
else if (!window->wl.shellSurface)
createShellSurface(window);
window->wl.visible = GLFW_TRUE;
}
}
void _glfwPlatformHideWindow(_GLFWwindow* window)