elm_widget: call the events after eval outself with new manager/parent

otherwise we might end up with a node_get error, since the widget where
the event is called on is still registered in the wrong manager
This commit is contained in:
Marcel Hollerbach 2017-07-24 17:58:13 +02:00
parent b49df7128a
commit 6f0b79fe4b
1 changed files with 2 additions and 1 deletions

View File

@ -420,6 +420,8 @@ _full_eval(Eo *obj, Elm_Widget_Smart_Data *pd)
_focus_state_eval(pd->logical.parent, new_pd);
}
_focus_state_eval(obj, pd);
if (old_parent != pd->logical.parent)
{
efl_event_callback_call(obj,
@ -433,7 +435,6 @@ _full_eval(Eo *obj, Elm_Widget_Smart_Data *pd)
EFL_UI_FOCUS_USER_EVENT_MANAGER_CHANGED, old_manager);
}
_focus_state_eval(obj, pd);
}
/**