bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=2e6a08737d4b08f707502f3d0aa15bad051e183b

commit 2e6a08737d4b08f707502f3d0aa15bad051e183b
Author: Marcel Hollerbach <mar...@osg.samsung.com>
Date:   Thu Nov 16 17:16:03 2017 +0100

    efl_ui_focus_object: emit changed event after the flag gets set
    
    otherwise new efl_ui_focus_object_focus_get calls could be confused.
---
 src/lib/elementary/efl_ui_focus_object.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elementary/efl_ui_focus_object.c 
b/src/lib/elementary/efl_ui_focus_object.c
index 990837f33f..e1361dfad1 100644
--- a/src/lib/elementary/efl_ui_focus_object.c
+++ b/src/lib/elementary/efl_ui_focus_object.c
@@ -16,8 +16,8 @@ _efl_ui_focus_object_focus_set(Eo *obj, 
Efl_Ui_Focus_Object_Data *pd, Eina_Bool
 {
    if (pd->old_focus == focus) return;
 
-   efl_event_callback_call(obj, EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_CHANGED , 
(void*) (uintptr_t) focus);
    pd->old_focus = focus;
+   efl_event_callback_call(obj, EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_CHANGED , 
(void*) (uintptr_t) focus);
 }
 
 EOLIAN static Eina_Bool

-- 


Reply via email to