elm_widget: only set focus.manager if we are really registering

otherwise we might set focus.manager even if we are not registered
This commit is contained in:
Marcel Hollerbach 2017-07-24 17:54:31 +02:00
parent 47ce995637
commit b49df7128a
1 changed files with 1 additions and 2 deletions

View File

@ -338,10 +338,9 @@ _focus_state_eval(Eo *obj, Elm_Widget_Smart_Data *pd)
{
if (manager != obj)
{
pd->focus.manager = manager;
if (!pd->logical.parent) return;
pd->focus.manager = manager;
pd->focus.logical = !want_full;
if (!elm_obj_widget_focus_register(obj, pd->focus.manager,