From 576c8d086457f2d46220be51ca1f55d55c87da46 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 26 Sep 2017 12:26:19 -0400 Subject: [PATCH] use client geometry for visibility effect geometry, not comp object geometry clients may defer object geometry setting, resulting in unreliable values here --- src/bin/e_comp_object.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bin/e_comp_object.c b/src/bin/e_comp_object.c index 2e37c83e8..b765793ef 100644 --- a/src/bin/e_comp_object.c +++ b/src/bin/e_comp_object.c @@ -851,8 +851,8 @@ _e_comp_object_effect_visibility_start(E_Comp_Object *cw, Eina_Bool state) ecore_evas_pointer_xy_get(e_comp->ee, &x, &y); else evas_pointer_canvas_xy_get(e_comp->evas, &x, &y); - x -= cw->x; - y -= cw->y; + x -= cw->ec->x; + y -= cw->ec->y; if (cw->ec->zone) zw = cw->ec->zone->w, zh = cw->ec->zone->h; else @@ -863,8 +863,8 @@ _e_comp_object_effect_visibility_start(E_Comp_Object *cw, Eina_Bool state) if (!zone) zone = e_zone_current_get(); zw = zone->w, zh = zone->h; } - e_comp_object_effect_params_set(cw->smart_obj, 1, (int[]){cw->x, cw->y, - cw->w, cw->h, zw, zh, x, y}, 8); + e_comp_object_effect_params_set(cw->smart_obj, 1, (int[]){cw->ec->x, cw->ec->y, + cw->ec->w, cw->ec->h, zw, zh, x, y}, 8); e_comp_object_effect_params_set(cw->smart_obj, 0, (int[]){state}, 1); e_comp_object_effect_start(cw->smart_obj, _e_comp_object_done_defer, cw); return EINA_TRUE;