forked from enlightenment/efl
efl_ui_focus_manager_sub: handle manager change when tree is set to unfocusable
Summary: in this case, the event is emitted and no manager exists because the objects are not focusable @fix Reviewers: bu5hm4n Reviewed By: bu5hm4n Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8935
This commit is contained in:
parent
be4590ee41
commit
30af2c5637
|
@ -158,6 +158,8 @@ _logical_manager_change(void *data EINA_UNUSED, const Efl_Event *ev)
|
|||
if (!ev->info) return;
|
||||
|
||||
manager = efl_ui_focus_object_focus_manager_get(ev->object);
|
||||
/* no manager is set when object trees become unfocusable */
|
||||
if (!manager) return;
|
||||
EINA_LIST_FOREACH(pd->current_border, n, b)
|
||||
{
|
||||
if (b == ev->object) continue;
|
||||
|
|
Loading…
Reference in New Issue