evas/wayland: Add framespace offset to newly created objects.

Patch originally done by: Christopher Michael <cp.michael@samsung.com>
This commit is contained in:
Rafael Antognolli 2013-03-26 14:51:54 -03:00
parent 6006432c3f
commit 89f20765ab
1 changed files with 7 additions and 0 deletions

View File

@ -22,6 +22,13 @@ evas_object_inject(Evas_Object *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *
lay->usage++;
obj->layer = lay;
obj->in_layer = 1;
EINA_COW_STATE_WRITE_BEGIN(obj, state_write, cur)
{
state_write->geometry.x = obj->layer->evas->framespace.x;
state_write->geometry.y = obj->layer->evas->framespace.y;
}
EINA_COW_STATE_WRITE_END(obj, state_write, cur);
}
void