X11: Only unmaximize visible windows

master
Camilla Berglund ago%!(EXTRA string=9 years)
parent 80ba9944e5
commit f88a609000
  1. 2
      src/x11_window.c

@ -1878,7 +1878,7 @@ void _glfwPlatformRestoreWindow(_GLFWwindow* window)
if (_glfwPlatformWindowIconified(window))
XMapWindow(_glfw.x11.display, window->x11.handle);
else
else if (_glfwPlatformWindowVisible(window))
{
if (_glfw.x11.NET_WM_STATE &&
_glfw.x11.NET_WM_STATE_MAXIMIZED_VERT &&

Loading…
Cancel
Save