elementary/elm_win : focus restoring will be occured only when current
authorwoohyun <woohyun@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 9 Aug 2011 09:29:22 +0000 (09:29 +0000)
committerwoohyun <woohyun@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 9 Aug 2011 09:29:22 +0000 (09:29 +0000)
elm_win is unfocused.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@62247 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_win.c

index fbd381d..25144b3 100644 (file)
@@ -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);