discomfitor pushed a commit to branch enlightenment-0.21.

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

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

    call "maximize" smart callback before "maximize_pre"
    
    this callback induces ssd changes which affect the resulting geometry
    and so it must be called before any size calculations are made
---
 src/bin/e_client.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/bin/e_client.c b/src/bin/e_client.c
index 09785c4..b37d429 100644
--- a/src/bin/e_client.c
+++ b/src/bin/e_client.c
@@ -3794,6 +3794,10 @@ e_client_maximize(E_Client *ec, E_Maximize max)
         EC_CHANGED(ec);
         return;
      }
+   if ((max & E_MAXIMIZE_TYPE) == E_MAXIMIZE_FULLSCREEN)
+     evas_object_smart_callback_call(ec->frame, "fullscreen", NULL);
+   else
+     evas_object_smart_callback_call(ec->frame, "maximize", NULL);
    evas_object_smart_callback_call(ec->frame, "maximize_pre", &max);
    if (!max) return;
    override = ec->maximize_override;
@@ -3827,10 +3831,7 @@ e_client_maximize(E_Client *ec, E_Maximize max)
    ec->saved.frame = e_comp_object_frame_exists(ec->frame) || 
(!e_comp_object_frame_allowed(ec->frame));
 
    ec->maximize_override = 1;
-   if ((max & E_MAXIMIZE_TYPE) == E_MAXIMIZE_FULLSCREEN)
-     evas_object_smart_callback_call(ec->frame, "fullscreen", NULL);
-   else
-     evas_object_smart_callback_call(ec->frame, "maximize", NULL);
+
    {
       int x, y, w, h;
       e_client_maximize_geometry_get(ec, max, &x, &y, &w, &h);

-- 


Reply via email to