From 4bd827ce5c267eaef579f79aefbbcb2129f938f0 Mon Sep 17 00:00:00 2001 From: Alessandro Mauri Date: Thu, 19 Dec 2024 19:42:02 +0100 Subject: [PATCH] set ids --- src/ugui_core.c3 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ugui_core.c3 b/src/ugui_core.c3 index 8bc082a..0a34627 100644 --- a/src/ugui_core.c3 +++ b/src/ugui_core.c3 @@ -190,6 +190,8 @@ macro Ctx.get_elem(&ctx, Id id) elem = ctx.cache.get_or_insert(&empty_elem, id, &is_new)!; elem.flags = (ElemFlags)0; elem.flags.is_new = is_new; + // FIXME: should this be here? or is it better to have the elements set the id? + elem.id = id; return elem; }