discomfitor pushed a commit to branch master. http://git.enlightenment.org/core/enlightenment.git/commit/?id=096f1084a5e737a97afdacbebcd231cf3a50860d
commit 096f1084a5e737a97afdacbebcd231cf3a50860d 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 3297f1c37..f3e479851 100644 --- a/src/bin/e_comp_object.c +++ b/src/bin/e_comp_object.c @@ -3197,7 +3197,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); @@ -3230,7 +3230,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); --
