summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorEduardo de Barros Lima <eblima@gmail.com>2012-08-22 14:53:45 +0000
committerEduardo de Barros Lima <eblima@gmail.com>2012-08-22 14:53:45 +0000
commitbacdd1ae11a450b034da15d72d5e41cf12f554d1 (patch)
tree0e2edc82af53bd7987f24a6ccdd012c8b860f014 /legacy
parent5070bbdf60d620aad41f4fe199f4c8be94c2001c (diff)
canvas: Fix event framespace adjustment
Complements fix in r75545 SVN revision: 75555
Diffstat (limited to 'legacy')
-rw-r--r--legacy/evas/src/lib/canvas/evas_events.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/legacy/evas/src/lib/canvas/evas_events.c b/legacy/evas/src/lib/canvas/evas_events.c
index ed56cf6530..9c42750fff 100644
--- a/legacy/evas/src/lib/canvas/evas_events.c
+++ b/legacy/evas/src/lib/canvas/evas_events.c
@@ -23,17 +23,15 @@ _evas_event_havemap_adjust(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Eina_
23static void 23static void
24_evas_event_framespace_adjust(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y) 24_evas_event_framespace_adjust(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y)
25{ 25{
26 if (!obj->is_frame) 26 if (obj->is_frame) return;
27
28 if ((!obj->smart.parent) && (obj->smart.smart))
27 { 29 {
28 if (((!obj->smart.parent) && (obj->smart.smart)) || 30 Evas *evas;
29 ((obj->smart.parent) && (!obj->smart.smart))) 31
30 { 32 evas = obj->layer->evas;
31 Evas *evas; 33 if (x) *x -= evas->framespace.x;
32 34 if (y) *y -= evas->framespace.y;
33 evas = obj->layer->evas;
34 if (x) *x -= evas->framespace.x;
35 if (y) *y -= evas->framespace.y;
36 }
37 } 35 }
38} 36}
39 37