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
This commit is contained in:
Lucas De Marchi 2010-09-18 06:31:12 +00:00
parent a1a69cae0f
commit 1a0a9b68f6
1 changed files with 4 additions and 2 deletions

View File

@ -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))