elm_widget: do not register disabled logical nodes

this reduces the load of useless logical trees that

ref T5753
This commit is contained in:
Marcel Hollerbach 2017-07-18 16:16:18 +02:00
parent 92bad54778
commit 1c9762d8ca
1 changed files with 13 additions and 1 deletions

View File

@ -315,7 +315,19 @@ _focus_state_eval(Eo *obj, Elm_Widget_Smart_Data *pd)
}
if (!should && pd->logical.child_count > 0)
should = EINA_TRUE;
{
should = EINA_TRUE;
if (_tree_unfocusable(obj))
should = EINA_FALSE;
if (_tree_disabled(obj))
should = EINA_FALSE;
if (!evas_object_visible_get(obj))
should = EINA_FALSE;
}
if ( //check if we have changed the manager
(pd->focus.manager != manager && should) ||