summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYeongJong Lee <yj34.lee@samsung.com>2018-04-24 18:57:24 +0900
committerWooHyun Jung <wh0705.jung@samsung.com>2018-04-24 18:57:24 +0900
commit692ad9c079023cc6a3077598a53eda9a8cd887c1 (patch)
tree8b47766aaee41b8704f1982f1d8bc264a5ac7c74
parente0929003b578b4364bc34998dc9b7df3056fd78a (diff)
downloadefl-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.c4
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))