discomfitor pushed a commit to branch enlightenment-0.21.

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

commit 43dd2c11660e5770903be87579e8201cb65c0c32
Author: Mike Blumenkrantz <[email protected]>
Date:   Mon Aug 21 10:16:30 2017 -0400

    always use client geometry for comp object centering functions
    
    this should always be more accurate than the object geometry, which may
    or may not have been applied at any given time
---
 src/bin/e_comp_object.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bin/e_comp_object.c b/src/bin/e_comp_object.c
index 0782ae86d..063252bf6 100644
--- a/src/bin/e_comp_object.c
+++ b/src/bin/e_comp_object.c
@@ -3113,7 +3113,7 @@ e_comp_object_util_center_on_zone(Evas_Object *obj, 
E_Zone *zone)
 
    EINA_SAFETY_ON_NULL_RETURN(zone);
    e_zone_useful_geometry_get(zone, &x, &y, &w, &h);
-   if (cw && (cw->ec->changes.size || cw->ec->new_client))
+   if (cw)
      ow = cw->ec->w, oh = cw->ec->h;
    else
      evas_object_geometry_get(obj, NULL, NULL, &ow, &oh);
@@ -3146,7 +3146,7 @@ e_comp_object_util_center_on(Evas_Object *obj, 
Evas_Object *on)
      x = cw2->ec->x, y = cw2->ec->y, w = cw2->ec->w, h = cw2->ec->h;
    else
      evas_object_geometry_get(on, &x, &y, &w, &h);
-   if (cw && (cw->ec->changes.size || cw->ec->new_client))
+   if (cw)
      ow = cw->ec->w, oh = cw->ec->h;
    else
      evas_object_geometry_get(obj, NULL, NULL, &ow, &oh);

-- 


Reply via email to