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
This commit is contained in:
nirajkr 2014-04-03 19:10:53 +09:00 committed by Carsten Haitzler (Rasterman)
parent 58b6b6596a
commit e839950126
1 changed files with 2 additions and 0 deletions

View File

@ -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);