From 83fbc08d6faa5af2dff8105ff2f0f8870c9e81d2 Mon Sep 17 00:00:00 2001 From: hermet Date: Fri, 21 Oct 2011 09:53:26 +0000 Subject: [PATCH] evas/evas_events - trivial changes git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@64247 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/canvas/evas_events.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/lib/canvas/evas_events.c b/src/lib/canvas/evas_events.c index 7087475..d15913a 100644 --- a/src/lib/canvas/evas_events.c +++ b/src/lib/canvas/evas_events.c @@ -7,15 +7,12 @@ _evas_event_havemap_adjust(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Eina_ if (obj->smart.parent) _evas_event_havemap_adjust(obj->smart.parent, x, y, mouse_grabbed); - if ((!obj->cur.map) || (!obj->cur.map->count == 4) || (!obj->cur.usemap)) + if ((!obj->cur.usemap) || (!obj->cur.map) || (!obj->cur.map->count == 4)) return; - if (obj->cur.map) - { - evas_map_coords_get(obj->cur.map, *x, *y, x, y, mouse_grabbed); - *x += obj->cur.geometry.x; - *y += obj->cur.geometry.y; - } + evas_map_coords_get(obj->cur.map, *x, *y, x, y, mouse_grabbed); + *x += obj->cur.geometry.x; + *y += obj->cur.geometry.y; } static Eina_List * -- 2.7.4