bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=6daff0e6f413a0cb153224ebf7cab21a4fdebd99

commit 6daff0e6f413a0cb153224ebf7cab21a4fdebd99
Author: Marcel Hollerbach <[email protected]>
Date:   Thu Nov 16 18:05:50 2017 +0100

    elm_main: checking the redirect chain is not neccessery
    
    the manager is in or has no focused element
---
 src/lib/elementary/elm_main.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/src/lib/elementary/elm_main.c b/src/lib/elementary/elm_main.c
index 1704508061..cea2061abe 100644
--- a/src/lib/elementary/elm_main.c
+++ b/src/lib/elementary/elm_main.c
@@ -1590,15 +1590,6 @@ elm_object_focus_get(const Evas_Object *obj)
    //no manager means not registered
    if (!m) return EINA_FALSE;
 
-   //first ensure that the manager where we are registered in is in the 
redirect chain
-   while(m != elm_widget_top_get(obj))
-     {
-        Efl_Ui_Focus_Manager *m_low = efl_ui_focus_user_manager_get(m);
-
-        if (efl_ui_focus_manager_redirect_get(m_low) != m) return EINA_FALSE;
-
-        m = m_low;
-     }
    //assertion: our redirect manager m is in the redirect chain
    m = efl_ui_focus_user_manager_get(obj);
 

-- 


Reply via email to