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