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:
Mike Blumenkrantz 2019-05-23 09:32:00 -04:00
parent 0d8856b24a
commit 28ac4d08cc
1 changed files with 2 additions and 0 deletions

View File

@ -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;