From e839950126fa5ea8a4407e86419acee640934588 Mon Sep 17 00:00:00 2001 From: nirajkr Date: Thu, 3 Apr 2014 19:10:53 +0900 Subject: [PATCH] focus: Avoid un-necessary focus animation call Summary: Avoid un-necessary focus animation call if the source and target have same co-ordinate Reviewers: seoz, woohyun, raster CC: seoz, singh.amitesh Differential Revision: https://phab.enlightenment.org/D679 --- legacy/elementary/src/lib/elm_win.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/legacy/elementary/src/lib/elm_win.c b/legacy/elementary/src/lib/elm_win.c index e26dd2baa9..c3a1651c6d 100644 --- a/legacy/elementary/src/lib/elm_win.c +++ b/legacy/elementary/src/lib/elm_win.c @@ -715,6 +715,8 @@ _elm_win_focus_highlight_anim_setup(Elm_Win_Data *sd, evas_object_move(obj, tx, ty); evas_object_resize(obj, tw, th); + if ((px == tx) && (py == ty) && (pw == tw) && (ph == th)) return; + if (!_elm_config->focus_highlight_clip_disable) evas_object_clip_unset(obj);