From 2c047c69b708d31108804403e82d29fb972ec53d Mon Sep 17 00:00:00 2001 From: Gwanglim Lee Date: Mon, 30 Oct 2017 17:08:24 +0900 Subject: [PATCH] e_comp_object: fixed a problem that final clip region of the mouse cursor object could be wrong after rotating Due to an initial position of cw->clip that is (0, 0), it could occur that the top of the mouse cursor object could be clipped after rotating. Ideally, this issue should be fixed at the evas rendering engine side, but extending the position to (-9999,-9999) from (0, 0) is enough for resolving this issue. Change-Id: Icdf1bfbb428945827b542be1475fac2b32de28bb --- src/bin/e_comp_object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/e_comp_object.c b/src/bin/e_comp_object.c index bf279bcca7..2141c19d31 100644 --- a/src/bin/e_comp_object.c +++ b/src/bin/e_comp_object.c @@ -1113,6 +1113,7 @@ static void _e_comp_object_setup(E_Comp_Object *cw) { cw->clip = evas_object_rectangle_add(e_comp->evas); + evas_object_move(cw->clip, -9999, -9999); evas_object_resize(cw->clip, 999999, 999999); evas_object_smart_member_add(cw->clip, cw->smart_obj); cw->effect_obj = edje_object_add(e_comp->evas); @@ -2921,7 +2922,6 @@ _e_comp_smart_move(Evas_Object *obj, int x, int y) INTERNAL_ENTRY; cw->x = x, cw->y = y; - evas_object_move(cw->clip, 0, 0); evas_object_move(cw->effect_obj, x, y); evas_object_move(cw->map_input_obj, x, y); if (cw->input_obj) evas_object_move(cw->input_obj, x, y); -- 2.34.1