efl_ui_focus_composition: only rely on manager

for the case of a custom manager this resulted in wrong behaviour.
This commit is contained in:
Marcel Hollerbach 2018-01-23 20:56:49 +01:00
parent 382e1a8957
commit 1bdbf207f1
1 changed files with 1 additions and 10 deletions

View File

@ -30,16 +30,7 @@ _state_apply(Eo *obj, Efl_Ui_Focus_Composition_Data *pd)
else
manager = pd->registered;
if (!pd->registered && pd->registered_targets)
{
Efl_Ui_Focus_Object *o;
//remove all of them
EINA_LIST_FREE(pd->registered_targets, o)
{
efl_ui_focus_manager_calc_unregister(manager, o);
}
}
else if (pd->registered)
if (manager)
{
Eina_List *n;
Eina_List *safed = NULL;