bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=44a3e2b7c48b3d3a4880f2f641c8876b8b2acd82

commit 44a3e2b7c48b3d3a4880f2f641c8876b8b2acd82
Author: Marcel Hollerbach <[email protected]>
Date:   Wed Feb 28 18:42:24 2018 +0100

    efl_ui_focus_manager_sub: flush the border if we cannot find a candidate
    
    after that someone probebly wants to check where the last focus was on,
    if the set of boder elements has changed since the last border flush, then 
the
    element might not be registered in the parent manager
---
 src/lib/elementary/efl_ui_focus_manager_sub.c  | 12 ++++++++++++
 src/lib/elementary/efl_ui_focus_manager_sub.eo |  1 +
 2 files changed, 13 insertions(+)

diff --git a/src/lib/elementary/efl_ui_focus_manager_sub.c 
b/src/lib/elementary/efl_ui_focus_manager_sub.c
index eb37494906..57997afd41 100644
--- a/src/lib/elementary/efl_ui_focus_manager_sub.c
+++ b/src/lib/elementary/efl_ui_focus_manager_sub.c
@@ -211,5 +211,17 @@ _efl_ui_focus_manager_sub_efl_object_destructor(Eo *obj, 
Efl_Ui_Focus_Manager_Su
    efl_destructor(efl_super(obj, MY_CLASS));
 }
 
+EOLIAN static Efl_Ui_Focus_Object*
+_efl_ui_focus_manager_sub_efl_ui_focus_manager_move(Eo *obj, 
Efl_Ui_Focus_Manager_Sub_Data *pd, Efl_Ui_Focus_Direction direction)
+{
+   Eo *target = efl_ui_focus_manager_move(efl_super(obj, MY_CLASS), direction);
+
+   if (!target)
+     _border_flush(obj, pd);
+
+   return target;
+}
+
+
 
 #include "efl_ui_focus_manager_sub.eo.c"
diff --git a/src/lib/elementary/efl_ui_focus_manager_sub.eo 
b/src/lib/elementary/efl_ui_focus_manager_sub.eo
index edf2ee0e76..8348202b36 100644
--- a/src/lib/elementary/efl_ui_focus_manager_sub.eo
+++ b/src/lib/elementary/efl_ui_focus_manager_sub.eo
@@ -18,5 +18,6 @@ mixin Efl.Ui.Focus.Manager.Sub (Efl.Interface, 
Efl.Ui.Focus.Manager, Efl.Object)
     implements {
         Efl.Object.constructor;
         Efl.Object.destructor;
+        Efl.Ui.Focus.Manager.move;
     }
 }

-- 


Reply via email to