diff options
author | YeongJong Lee <yj34.lee@samsung.com> | 2018-04-24 18:57:24 +0900 |
---|---|---|
committer | WooHyun Jung <wh0705.jung@samsung.com> | 2018-04-24 18:57:24 +0900 |
commit | 692ad9c079023cc6a3077598a53eda9a8cd887c1 (patch) | |
tree | 8b47766aaee41b8704f1982f1d8bc264a5ac7c74 | |
parent | e0929003b578b4364bc34998dc9b7df3056fd78a (diff) | |
download | efl-692ad9c079023cc6a3077598a53eda9a8cd887c1.tar.gz |
elm_main: recover legacy focus in elm_object_focused_object_get
Reviewers: woohyun
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D5986
-rw-r--r-- | src/lib/elementary/elm_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_main.c b/src/lib/elementary/elm_main.c index 420f3f9281..cbdad3457c 100644 --- a/src/lib/elementary/elm_main.c +++ b/src/lib/elementary/elm_main.c @@ -1732,6 +1732,10 @@ EAPI Evas_Object * elm_object_focused_object_get(const Evas_Object *obj) { EINA_SAFETY_ON_NULL_RETURN_VAL(obj, NULL); + + if (elm_widget_is_legacy(obj)) + return efl_ui_widget_focused_object_get(obj); + Efl_Ui_Focus_Manager *man = elm_object_top_widget_get(obj); while(efl_ui_focus_manager_redirect_get(man)) |