From 4151f89e2d08fef89fbe5ffbb708aa5283afe6c2 Mon Sep 17 00:00:00 2001 From: Cedric Bail Date: Sun, 7 Apr 2013 23:44:13 +0900 Subject: [PATCH] evas: correctly initialize and get the bounding box at the right time. --- src/lib/evas/canvas/evas_events.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/evas/canvas/evas_events.c b/src/lib/evas/canvas/evas_events.c index 14daad1342..392a56247b 100644 --- a/src/lib/evas/canvas/evas_events.c +++ b/src/lib/evas/canvas/evas_events.c @@ -103,12 +103,13 @@ _evas_event_object_list_raw_in_get(Evas *eo_e, Eina_List *in, } else { - Evas_Coord_Rectangle bounding_box; - - evas_object_smart_bounding_box_get(eo_obj, &bounding_box, NULL); + Evas_Coord_Rectangle bounding_box = { 0, 0, 0, 0 }; if (!obj->child_has_map) evas_object_smart_bounding_box_update(eo_obj, obj); + + evas_object_smart_bounding_box_get(eo_obj, &bounding_box, NULL); + if (obj->child_has_map || (bounding_box.x <= x && bounding_box.x + bounding_box.w >= x &&