when removing VERTICAL maximize state, also remove LEFT and RIGHT states
authorMike Blumenkrantz <zmike@osg.samsung.com>
Wed, 7 Oct 2015 19:43:29 +0000 (15:43 -0400)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Wed, 7 Oct 2015 19:47:21 +0000 (15:47 -0400)
LEFT and RIGHT are supersets of VERTICAL which serve no purpose on their own,
so remove them when removing VERTICAL

fix T2770

src/bin/e_client.c

index 91846c1..f530dcb 100644 (file)
@@ -3838,7 +3838,11 @@ e_client_unmaximize(E_Client *ec, E_Maximize max)
                   vert = EINA_TRUE;
                   y = ec->saved.y + ec->zone->y;
                   if ((max & E_MAXIMIZE_VERTICAL) == E_MAXIMIZE_VERTICAL)
-                    ec->maximized &= ~E_MAXIMIZE_VERTICAL;
+                    {
+                       ec->maximized &= ~E_MAXIMIZE_VERTICAL;
+                       ec->maximized &= ~E_MAXIMIZE_LEFT;
+                       ec->maximized &= ~E_MAXIMIZE_RIGHT;
+                    }
                   if ((max & E_MAXIMIZE_LEFT) == E_MAXIMIZE_LEFT)
                     ec->maximized &= ~E_MAXIMIZE_LEFT;
                   if ((max & E_MAXIMIZE_RIGHT) == E_MAXIMIZE_RIGHT)