Ignore _glfwPlatformShowWindow when already visible

master
Emmanuel Gil Peyrot ago%!(EXTRA string=8 years) committed by linkmauve
parent f710db6504
commit 4778d02c67
  1. 13
      src/wl_window.c

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

Loading…
Cancel
Save