summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-05-23 09:32:00 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-05-23 09:32:00 -0400
commit28ac4d08cc73a21c97b5a18bffabd486b860438c (patch)
tree727c138010cabfdf830beda2e1168d08a7b52976
parent0d8856b24a4ec3cff2bcf7e99cd4c5669305f71b (diff)
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
-rw-r--r--src/lib/elementary/efl_ui_focus_manager_sub.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_focus_manager_sub.c b/src/lib/elementary/efl_ui_focus_manager_sub.c
index 4fb2733610..ee80ce40d2 100644
--- a/src/lib/elementary/efl_ui_focus_manager_sub.c
+++ b/src/lib/elementary/efl_ui_focus_manager_sub.c
@@ -158,6 +158,8 @@ _logical_manager_change(void *data EINA_UNUSED, const Efl_Event *ev)
158 if (!ev->info) return; 158 if (!ev->info) return;
159 159
160 manager = efl_ui_focus_object_focus_manager_get(ev->object); 160 manager = efl_ui_focus_object_focus_manager_get(ev->object);
161 /* no manager is set when object trees become unfocusable */
162 if (!manager) return;
161 EINA_LIST_FOREACH(pd->current_border, n, b) 163 EINA_LIST_FOREACH(pd->current_border, n, b)
162 { 164 {
163 if (b == ev->object) continue; 165 if (b == ev->object) continue;