This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch reproducible-widget-previews
in repository efl.

View the commit online.

commit 95d5661595da50a11958c2d4fb2d6835fd1f9366
Author: Cedric BAIL <[email protected]>
AuthorDate: Tue Mar 17 18:03:38 2026 -0600

    elm_genlist: gracefully handle non-genlist items in focus callback
    
    The focused widget may not correspond to a genlist item (e.g. border
    elements or scroll indicators). When item_fetch returns NULL or a
    non-genlist-item, just return instead of hitting a safety assertion
    that spams the log on every focus change.
    
    Made-with: Cursor
---
 src/lib/elementary/elm_genlist.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elementary/elm_genlist.c b/src/lib/elementary/elm_genlist.c
index d7ed1e52e0..2fc1bba873 100644
--- a/src/lib/elementary/elm_genlist.c
+++ b/src/lib/elementary/elm_genlist.c
@@ -6011,8 +6011,8 @@ _genlist_element_focused(void *data, const Efl_Event *ev)
    if (!focused || focused == data) return;
 
    item = efl_ui_focus_parent_provider_gen_item_fetch(pd->provider, focused);
+   if (!item || !efl_isa(item, ELM_GENLIST_ITEM_CLASS)) return;
 
-   EINA_SAFETY_ON_FALSE_RETURN(efl_isa(item, ELM_GENLIST_ITEM_CLASS));
    elm_object_item_focus_set(item, EINA_TRUE);
 }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to