From f88a6090009516bc7c0759942c1e912105680538 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Fri, 12 Aug 2016 01:38:15 +0200 Subject: [PATCH] X11: Only unmaximize visible windows --- src/x11_window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/x11_window.c b/src/x11_window.c index cc196efd..6857db74 100644 --- a/src/x11_window.c +++ b/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 &&