evas: let's not force an allocation and write for nothing.

This commit is contained in:
Cedric BAIL 2013-04-04 12:36:03 +09:00
parent a13456b04c
commit 54b9b19b66
1 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,10 @@ evas_object_inject(Evas_Object *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *
obj->layer = lay;
obj->in_layer = 1;
if (obj->cur->geometry.x == obj->layer->evas->framespace.x &&
obj->cur->geometry.y == obj->layer->evas->framespace.y)
return ;
EINA_COW_STATE_WRITE_BEGIN(obj, state_write, cur)
{
state_write->geometry.x = obj->layer->evas->framespace.x;