summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/elm_genlist.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index 4dac5fabb..75d3f04a3 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -2388,10 +2388,8 @@ _elm_genlist_smart_focus_next(const Evas_Object *obj,
2388 evas_object_geometry_get(it->base.view, &x, &y, &w, &h); 2388 evas_object_geometry_get(it->base.view, &x, &y, &w, &h);
2389 2389
2390 /* check item which displays more than half of its size */ 2390 /* check item which displays more than half of its size */
2391 if (((x + (w / 2)) >= sx) && 2391 if (ELM_RECTS_INTERSECT
2392 ((y + (h / 2)) >= sy) && 2392 (x + (w / 2), y + (h / 2), 0, 0, sx, sy, sw, sh))
2393 ((x + (w / 2)) <= (sx + sw)) &&
2394 ((y + (h / 2)) <= (sy + sh)))
2395 items = eina_list_append(items, it->base.access_obj); 2393 items = eina_list_append(items, it->base.access_obj);
2396 } 2394 }
2397 } 2395 }