discomfitor pushed a commit to branch master.

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

commit e3b3970b6e752b284670bd3667f79b6545c8b1b8
Author: Mike Blumenkrantz <[email protected]>
Date:   Wed Mar 22 16:15:16 2017 -0400

    adjust size for frame geometry in no-animation maximize path
    
    this is based on window size, not surface size
    
    also ignore coords if the size matches, animating just a positional
    change looks dumb
---
 src/bin/e_client.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/bin/e_client.c b/src/bin/e_client.c
index f4cf3e2..0aeb339 100644
--- a/src/bin/e_client.c
+++ b/src/bin/e_client.c
@@ -1708,7 +1708,10 @@ _e_client_maximize_run(E_Client *ec, int x, int y, int 
w, int h)
    int pw, ph;
    Eina_Bool disabled = EINA_FALSE;
    if (e_pixmap_size_get(ec->pixmap, &pw, &ph))
-      disabled = (ec->x == x) && (ec->y == y) && (w == pw) && (h == ph);
+      {
+         e_comp_object_frame_wh_adjust(ec->frame, pw, ph, &pw, &ph);
+         disabled = (w == pw) && (h == ph);
+      }
    if ((!disabled) && e_config->window_maximize_animate && 
(!ec->maximize_anims_disabled) &&
        (!starting) && (!ec->changes.need_maximize))
      {

-- 


Reply via email to