e_comp_object: fixed a problem that final clip region of the mouse cursor object... 81/158181/3
authorGwanglim Lee <gl77.lee@samsung.com>
Mon, 30 Oct 2017 08:08:24 +0000 (17:08 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Tue, 31 Oct 2017 02:54:19 +0000 (02:54 +0000)
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

index bf279bcca7a771fb9abbd48adccb1bd0b0886966..2141c19d315ce5f4438ab70c80225fcf7a1c5eb2 100644 (file)
@@ -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);