explicit restore to MAX_MAXIMUS instead of empty flag at handleMaximize
authorRenan Traba <rvt10@inf.ufpr.br>
Wed, 24 Apr 2013 01:37:16 +0000 (23 22:37 -0300)
committerCarlos R. Mafra <crmafra@gmail.com>
Tue, 21 May 2013 10:24:36 +0000 (21 11:24 +0100)
src/actions.c

index 19b4322..6c69563 100644 (file)
@@ -487,7 +487,7 @@ void handleMaximize(WWindow *wwin, int directions)
                /* allow wMaximizeWindow to restore the Maximusized size */
                if ((wwin->flags.old_maximized & MAX_MAXIMUS) &&
                                !(requested & MAX_MAXIMUS))
-                       wMaximizeWindow(wwin, flags);
+                       wMaximizeWindow(wwin, MAX_MAXIMUS | flags);
                else
                        wUnmaximizeWindow(wwin);
        /* these alone mean vertical|horizontal toggle */