From: woohyun Date: Tue, 9 Aug 2011 09:29:22 +0000 (+0000) Subject: elementary/elm_win : focus restoring will be occured only when current X-Git-Tag: REL_F_I9500_20120323_1~17^2~1983 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f24a04f7cac1edf5442b974674605fcc76afe127;hp=b320b4a68cb1c9f02a3c88377cb92d16ae920b52;p=framework%2Fuifw%2Felementary.git elementary/elm_win : focus restoring will be occured only when current elm_win is unfocused. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@62247 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/elm_win.c b/src/lib/elm_win.c index fbd381d..25144b3 100644 --- a/src/lib/elm_win.c +++ b/src/lib/elm_win.c @@ -306,9 +306,8 @@ _elm_win_focus_in(Ecore_Evas *ee) if (!obj) return; win = elm_widget_data_get(obj); if (!win) return; - elm_widget_focus_restore(win->win_obj); - if (!elm_object_focus_get(win->win_obj)) - elm_object_focus_set(win->win_obj, EINA_TRUE); + if (!elm_widget_focus_get(win->win_obj)) + elm_widget_focus_restore(win->win_obj); evas_object_smart_callback_call(win->win_obj, SIG_FOCUS_IN, NULL); win->focus_highlight.cur.visible = EINA_TRUE; _elm_win_focus_highlight_reconfigure_job_start(win);