canvas: Fix event framespace adjustment

Complements fix in r75545



SVN revision: 75555
This commit is contained in:
Eduardo de Barros Lima 2012-08-22 14:53:45 +00:00
parent 5070bbdf60
commit bacdd1ae11
1 changed files with 7 additions and 9 deletions

View File

@ -23,10 +23,9 @@ _evas_event_havemap_adjust(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Eina_
static void static void
_evas_event_framespace_adjust(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y) _evas_event_framespace_adjust(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y)
{ {
if (!obj->is_frame) if (obj->is_frame) return;
{
if (((!obj->smart.parent) && (obj->smart.smart)) || if ((!obj->smart.parent) && (obj->smart.smart))
((obj->smart.parent) && (!obj->smart.smart)))
{ {
Evas *evas; Evas *evas;
@ -34,7 +33,6 @@ _evas_event_framespace_adjust(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y)
if (x) *x -= evas->framespace.x; if (x) *x -= evas->framespace.x;
if (y) *y -= evas->framespace.y; if (y) *y -= evas->framespace.y;
} }
}
} }
static Eina_List * static Eina_List *