bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=1d3209a9ecdad730356b362077b05b0994dd1a22

commit 1d3209a9ecdad730356b362077b05b0994dd1a22
Author: Marcel Hollerbach <[email protected]>
Date:   Mon Mar 12 11:12:19 2018 +0100

    elm_widget_item_static_focus: move canvas_object_set to later
    
    We dont delete the adapeter when we are still focused, to set anyway the
    correct view to it, we need to set the view to the adapeter as often as
    possible
---
 src/lib/elementary/elm_widget_item_static_focus.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/lib/elementary/elm_widget_item_static_focus.c 
b/src/lib/elementary/elm_widget_item_static_focus.c
index 637de012e3..09a892326c 100644
--- a/src/lib/elementary/elm_widget_item_static_focus.c
+++ b/src/lib/elementary/elm_widget_item_static_focus.c
@@ -67,7 +67,6 @@ 
_elm_widget_item_static_focus_efl_ui_focus_object_prepare_logical(Eo *obj, Elm_W
           {
              // parent has to stay the object, since this is used to get the 
item of a adapter
              pd->adapter = efl_add(EFL_UI_FOCUS_COMPOSITION_ADAPTER_CLASS, 
obj);
-             efl_ui_focus_composition_adapter_canvas_object_set(pd->adapter,  
wpd->view);
              efl_wref_add(pd->adapter, &pd->adapter);
              efl_ui_focus_manager_calc_register(wpd->widget, pd->adapter, obj, 
NULL);
           }
@@ -78,6 +77,10 @@ 
_elm_widget_item_static_focus_efl_ui_focus_object_prepare_logical(Eo *obj, Elm_W
         efl_del(pd->adapter);
         pd->adapter = NULL;
      }
+
+   //genlist sometimes changes views when doing quick scrolls so reset the 
view in every possible call
+   if (pd->adapter)
+     efl_ui_focus_composition_adapter_canvas_object_set(pd->adapter,  
wpd->view);
 }
 
 EOLIAN static Efl_Object*

-- 


Reply via email to