aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel@osg.samsung.com>2018-02-28 18:42:24 +0100
committerMarcel Hollerbach <marcel@osg.samsung.com>2018-03-15 15:39:12 +0100
commit44a3e2b7c48b3d3a4880f2f641c8876b8b2acd82 (patch)
tree5c34791a5a28e959c59af4a92ea473bd6c3a0e7f
parentecore_wl2_window: Silence some spurious warnings (diff)
downloadefl-44a3e2b7c48b3d3a4880f2f641c8876b8b2acd82.tar.gz
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
-rw-r--r--src/lib/elementary/efl_ui_focus_manager_sub.c12
-rw-r--r--src/lib/elementary/efl_ui_focus_manager_sub.eo1
2 files changed, 13 insertions, 0 deletions
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;
}
}