discomfitor pushed a commit to branch enlightenment-0.19.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=24c2d5fb95f694abf85cf4d321551c9586e59da5

commit 24c2d5fb95f694abf85cf4d321551c9586e59da5
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Wed Oct 7 15:43:29 2015 -0400

    when removing VERTICAL maximize state, also remove LEFT and RIGHT states
    
    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 | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/bin/e_client.c b/src/bin/e_client.c
index a91ddd0..d669ca1 100644
--- a/src/bin/e_client.c
+++ b/src/bin/e_client.c
@@ -3842,7 +3842,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)

-- 


Reply via email to