From c4583e16472e36f63e54612aa7839bce29c41ca7 Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Tue, 10 Oct 2017 22:24:39 +0200 Subject: [PATCH] elm_main: also return true when the object is a redirect manager --- src/lib/elementary/elm_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/elementary/elm_main.c b/src/lib/elementary/elm_main.c index 07938ca..9f62e03 100644 --- a/src/lib/elementary/elm_main.c +++ b/src/lib/elementary/elm_main.c @@ -1635,6 +1635,9 @@ elm_object_focus_get(const Evas_Object *obj) //assertion: our redirect manager m is in the redirect chain m = efl_ui_focus_user_manager_get(obj); + //if obj is the redriect manager its kind of focused + if (efl_ui_focus_manager_redirect_get(m) == obj) return EINA_TRUE; + //if there is a redirect manager if (!!efl_ui_focus_manager_redirect_get(m)) return EINA_FALSE; -- 2.7.4