aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/elementary/efl_ui_win.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2018-06-19 13:40:27 -0400
committerMike Blumenkrantz <zmike@samsung.com>2018-06-19 13:40:27 -0400
commit865774bf81eac6154e69ecc36fdfffa77d109cd3 (patch)
treec91bbe7d0715ac9df41bc0775cda1a1b9fce563f /src/lib/elementary/efl_ui_win.c
parenteo: make the debug build print leaked errors (diff)
downloadefl-865774bf81eac6154e69ecc36fdfffa77d109cd3.tar.gz
efl_ui_win: do not attempt to focus a null object on focus-in
Summary: ref https://phab.enlightenment.org/T7033 Depends on https://phab.enlightenment.org/D6318 Reviewers: bu5hm4n, Hermet, woohyun, devilhorns Reviewed By: bu5hm4n Subscribers: cedric, #committers Tags: #efl Maniphest Tasks: https://phab.enlightenment.org/T7033 Differential Revision: https://phab.enlightenment.org/D6319
Diffstat (limited to 'src/lib/elementary/efl_ui_win.c')
-rw-r--r--src/lib/elementary/efl_ui_win.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index 64ed649dcf..60f8600bfe 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -1324,7 +1324,8 @@ _elm_win_focus_in(Ecore_Evas *ee)
}
Evas_Object *focused = efl_ui_focus_manager_focus_get(man);
- efl_ui_focus_object_focus_set(focused, EINA_TRUE);
+ if (focused)
+ efl_ui_focus_object_focus_set(focused, EINA_TRUE);
}
evas_object_smart_callback_call(obj, SIG_FOCUS_IN, NULL);