forked from enlightenment/efl
Revert this patch. It was not supposed to land yet as it was awaiting
review
Revert "elementary: Check for valid focus manager before starting do loop"
This reverts commit 364ca1d2b2
.
This commit is contained in:
parent
790d4a9a1d
commit
ae894a0509
|
@ -31,14 +31,6 @@ _efl_ui_focus_util_focus(Eo *obj EINA_UNUSED, void *pd EINA_UNUSED, Efl_Ui_Focus
|
||||||
registered_manager = m = efl_ui_focus_object_focus_manager_get(user);
|
registered_manager = m = efl_ui_focus_object_focus_manager_get(user);
|
||||||
entry = user;
|
entry = user;
|
||||||
|
|
||||||
if (!m)
|
|
||||||
{
|
|
||||||
//delayed focusung
|
|
||||||
efl_key_data_set(top, "__delayed_focus_set", entry);
|
|
||||||
efl_event_callback_add(entry, EFL_UI_FOCUS_OBJECT_EVENT_MANAGER_CHANGED, _manager_changed, user);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
do {
|
do {
|
||||||
//check if the root of a manager is the window root, set focus to this object in the manager than
|
//check if the root of a manager is the window root, set focus to this object in the manager than
|
||||||
entry = efl_ui_focus_manager_root_get(m);
|
entry = efl_ui_focus_manager_root_get(m);
|
||||||
|
@ -51,6 +43,13 @@ _efl_ui_focus_util_focus(Eo *obj EINA_UNUSED, void *pd EINA_UNUSED, Efl_Ui_Focus
|
||||||
|
|
||||||
//if there is no manager yet, delay the focus setting until this entity gets registered for one chain
|
//if there is no manager yet, delay the focus setting until this entity gets registered for one chain
|
||||||
m = efl_ui_focus_object_focus_manager_get(entry);
|
m = efl_ui_focus_object_focus_manager_get(entry);
|
||||||
|
if (!m)
|
||||||
|
{
|
||||||
|
//delayed focusung
|
||||||
|
efl_key_data_set(top, "__delayed_focus_set", entry);
|
||||||
|
efl_event_callback_add(entry, EFL_UI_FOCUS_OBJECT_EVENT_MANAGER_CHANGED, _manager_changed, user);
|
||||||
|
return;
|
||||||
|
}
|
||||||
} while (m);
|
} while (m);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue