aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/lib/elm_win.c
diff options
context:
space:
mode:
authornirajkr <niraj.kr@samsung.com>2014-04-03 19:10:53 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-04-03 19:10:53 +0900
commite839950126fa5ea8a4407e86419acee640934588 (patch)
treee27f943bed0ebc1e13d831f5e5af846a219d673a /legacy/elementary/src/lib/elm_win.c
parent[Elm_Dnd] Fix segmentation fault when deleting object with same registered dr... (diff)
downloadefl-e839950126fa5ea8a4407e86419acee640934588.tar.gz
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
Diffstat (limited to 'legacy/elementary/src/lib/elm_win.c')
-rw-r--r--legacy/elementary/src/lib/elm_win.c2
1 files changed, 2 insertions, 0 deletions
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);