forked from enlightenment/efl
elm_widget: do not register disabled logical nodes
this reduces the load of useless logical trees that ref T5753
This commit is contained in:
parent
92bad54778
commit
1c9762d8ca
|
@ -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) ||
|
||||
|
|
Loading…
Reference in New Issue