evas/framespace: Use more framespace offset on evas events.

The framespace offset must be taken into account when searching the list
of objects which received events, since the objects now have their
original position.
This commit is contained in:
Rafael Antognolli 2013-04-29 11:00:21 -03:00
parent 59c37d1c7b
commit a1914368a7
1 changed files with 3 additions and 2 deletions

View File

@ -37,8 +37,6 @@ _evas_event_framespace_adjust(Evas_Object *eo_obj, Evas_Coord *x, Evas_Coord *y)
Evas_Object_Protected_Data *obj = eo_data_get(eo_obj, EVAS_OBJ_CLASS);
Evas_Public_Data *evas;
if (obj->is_frame) return;
evas = obj->layer->evas;
if (x) *x -= evas->framespace.x;
if (y) *y -= evas->framespace.y;
@ -883,6 +881,9 @@ evas_event_objects_event_list(Evas *eo_e, Evas_Object *stop, int x, int y)
Eina_List *in = NULL;
if ((!e->layers) || (e->is_frozen)) return NULL;
x -= e->framespace.x;
y -= e->framespace.y;
EINA_INLIST_REVERSE_FOREACH((EINA_INLIST_GET(e->layers)), lay)
{
int no_rep = 0;