forked from enlightenment/efl
elm_win: newest is always unfocused when window just gets focus
This commit is contained in:
parent
406c234346
commit
fe7ba5af00
|
@ -1102,16 +1102,8 @@ _elm_win_focus_in(Ecore_Evas *ee)
|
|||
|
||||
newest = elm_widget_newest_focus_order_get
|
||||
(obj, &newest_focus_order, EINA_TRUE);
|
||||
if ((newest) &&
|
||||
_elm_widget_onscreen_is(newest))
|
||||
{
|
||||
if (_elm_win_focus_highlight_object_get(obj))
|
||||
if (newest && _elm_widget_onscreen_is(newest))
|
||||
elm_widget_focus_restore(obj);
|
||||
else if (!elm_object_focus_get(newest))
|
||||
elm_widget_focus_restore(obj);
|
||||
else
|
||||
evas_object_focus_set(obj, EINA_TRUE);
|
||||
}
|
||||
else
|
||||
evas_object_focus_set(obj, EINA_TRUE);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue