ui/common/object.c

changeset 110
c00e968d018b
parent 108
77254bd6dccb
child 112
c3f2f16fa4b8
--- a/ui/common/object.c	Sun Aug 24 15:24:16 2025 +0200
+++ b/ui/common/object.c	Sat Oct 04 14:52:59 2025 +0200
@@ -136,6 +136,7 @@
     CxMempool *mp = cxMempoolCreateSimple(256);
     UiObject *obj = cxCalloc(mp->allocator, 1, sizeof(UiObject));
     obj->ctx = uic_context(obj, mp);
+    obj->ctx->parent = ui_global_context();
     uic_object_created(obj);
     return obj;
 }

mercurial