Since there was no image buffer in e_comp_object before ec was not mapped,
e_client_geomentry_get had returned (0, 0) position value. From now, it is
changed to return x and y values of ec itself instead of returning invalid
values.
Change-Id: Ie6bfcda214b9608ea18f8511eaef8a20ea9d6a7b
evas_object_geometry_get(ec->frame, &gx, &gy, &gw, &gh);
if (gw == 0 && gh == 0)
{
+ /* In this case, there is no image buffer in e_comp_object, thus it
+ * should return geometry value of ec itself. It usually happens if
+ * new ec is not mapped yet.
+ */
gw = ec->w;
gh = ec->h;
+
+ if ((ec->changes.pos) &&
+ ((gx != ec->x) || (gy != ec->y)))
+ {
+ gx = ec->x;
+ gy = ec->y;
+ }
}
}
else