From 1a0a9b68f636fcc73489a98913ff13f365c00f2a Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Sat, 18 Sep 2010 06:31:12 +0000 Subject: [PATCH] Use also map of current object Do not use only the map of the parent. Apply the obj's map first and then go to the parent. + simple formatting SVN revision: 52406 --- legacy/evas/src/lib/canvas/evas_events.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/legacy/evas/src/lib/canvas/evas_events.c b/legacy/evas/src/lib/canvas/evas_events.c index 2f26da101c..6329e36299 100644 --- a/legacy/evas/src/lib/canvas/evas_events.c +++ b/legacy/evas/src/lib/canvas/evas_events.c @@ -5,8 +5,10 @@ static void _evas_event_havemap_adjust(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y) { Evas_Object *pmap; - pmap = obj->smart.parent; + evas_map_coords_get(obj->cur.map, *x, *y, x, y, obj->mouse_grabbed); + + pmap = obj->smart.parent; while (pmap) { if ((pmap->cur.map) && (pmap->cur.map->count == 4) && (pmap->cur.usemap)) @@ -46,7 +48,7 @@ _evas_event_object_list_in_get(Evas *e, Eina_List *in, { int norep; int inside; - + norep = 0; if (((obj->cur.map) && (obj->cur.map->count == 4) && (obj->cur.usemap))) {