efl_ui_focus_manager: correct check

this check was checking for focus_manager to be window_root. This is not
correct, it should check for the root element.

ref D11667
This commit is contained in:
Marcel Hollerbach 2020-04-08 22:44:48 +02:00
parent b0fd22fffe
commit ca6ce538b5
1 changed files with 3 additions and 3 deletions

View File

@ -111,11 +111,11 @@ _focus_manager_active_get(Eo *obj)
{
Eo *root, *manager, *comp_parent, *redirect;
if (efl_isa(obj, EFL_UI_FOCUS_MANAGER_WINDOW_ROOT_INTERFACE) ||
(efl_composite_part_is(obj) && efl_isa(efl_parent_get(obj), EFL_UI_FOCUS_MANAGER_WINDOW_ROOT_INTERFACE)))
root = efl_ui_focus_manager_root_get(obj);
if (efl_isa(root, EFL_UI_FOCUS_MANAGER_WINDOW_ROOT_INTERFACE))
return EINA_TRUE;
root = efl_ui_focus_manager_root_get(obj);
manager = efl_ui_focus_object_focus_manager_get(root);
if (!manager) return EINA_FALSE;