forked from enlightenment/efl
evas: correctly initialize and get the bounding box at the right time.
This commit is contained in:
parent
244cca7503
commit
4151f89e2d
|
@ -103,12 +103,13 @@ _evas_event_object_list_raw_in_get(Evas *eo_e, Eina_List *in,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Evas_Coord_Rectangle bounding_box;
|
Evas_Coord_Rectangle bounding_box = { 0, 0, 0, 0 };
|
||||||
|
|
||||||
evas_object_smart_bounding_box_get(eo_obj, &bounding_box, NULL);
|
|
||||||
|
|
||||||
if (!obj->child_has_map)
|
if (!obj->child_has_map)
|
||||||
evas_object_smart_bounding_box_update(eo_obj, obj);
|
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 ||
|
if (obj->child_has_map ||
|
||||||
(bounding_box.x <= x &&
|
(bounding_box.x <= x &&
|
||||||
bounding_box.x + bounding_box.w >= x &&
|
bounding_box.x + bounding_box.w >= x &&
|
||||||
|
|
Loading…
Reference in New Issue