From b27944da085234d93aee7079cb5b5588dcb4239f Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Sun, 19 Nov 2017 11:08:36 +0100 Subject: [PATCH] elm_list: use internal focus set instead of public focus set elm_object_item_focus_set ensures that the list also gets focus, thus calling that in _elm_list_elm_widget_on_focus_update would result in a infinite call recursion, if setting the focus fails (for example when the object is not visible yet, [see enlightenment for that]). This fixes a freeze if you open lunchers config. --- src/lib/elementary/elm_list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/elementary/elm_list.c b/src/lib/elementary/elm_list.c index 76e6ef5c42..35219faabc 100644 --- a/src/lib/elementary/elm_list.c +++ b/src/lib/elementary/elm_list.c @@ -1274,7 +1274,7 @@ _elm_list_elm_widget_on_focus_update(Eo *obj, Elm_List_Data *sd, Elm_Object_Item if (!_elm_config->item_select_on_focus_disable && is_sel) elm_list_item_selected_set(EO_OBJ(it), EINA_TRUE); else - elm_object_item_focus_set(EO_OBJ(it), EINA_TRUE); + _elm_list_item_focused(EO_OBJ(it)); } } }