discomfitor pushed a commit to branch enlightenment-0.19.

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

commit 187608ba7a4454c35beb9f21ea18ab53b33535d2
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Tue Apr 21 15:05:25 2015 -0400

    use client geom for comp object centering functions if ec->new_client is set
---
 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 c8fc023..c513932 100644
--- a/src/bin/e_comp_object.c
+++ b/src/bin/e_comp_object.c
@@ -2614,7 +2614,7 @@ e_comp_object_util_center(Evas_Object *obj)
    zone = e_comp_object_util_zone_get(obj);
    EINA_SAFETY_ON_NULL_RETURN(zone);
    e_zone_useful_geometry_get(zone, &x, &y, &w, &h);
-   if (cw && cw->ec->changes.size)
+   if (cw && (cw->ec->changes.size || cw->ec->new_client))
      ow = cw->ec->w, oh = cw->ec->h;
    else
      evas_object_geometry_get(obj, NULL, NULL, &ow, &oh);
@@ -2631,7 +2631,7 @@ e_comp_object_util_center_on(Evas_Object *obj, 
Evas_Object *on)
    SOFT_ENTRY();
    EINA_SAFETY_ON_NULL_RETURN(on);
    evas_object_geometry_get(on, &x, &y, &w, &h);
-   if (cw && cw->ec->changes.size)
+   if (cw && (cw->ec->changes.size || cw->ec->new_client))
      ow = cw->ec->w, oh = cw->ec->h;
    else
      evas_object_geometry_get(obj, NULL, NULL, &ow, &oh);

-- 


Reply via email to