ui/common/object.c

changeset 797
47008843b468
parent 659
d6baaa93f7be
child 801
e096c441e874
--- a/ui/common/object.c	Sat Oct 04 12:29:44 2025 +0200
+++ b/ui/common/object.c	Sat Oct 04 14:43:18 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