1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-23 10:48:51 -05:00

X11: Only unmaximize visible windows

This commit is contained in:
Camilla Berglund 2016-08-12 01:38:15 +02:00
parent 80ba9944e5
commit f88a609000

View File

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