--- a/ui/common/document.c Thu Apr 16 17:41:35 2026 +0200
+++ b/ui/common/document.c Fri Apr 17 13:21:11 2026 +0200
@@ -45,6 +45,7 @@
UiDoc *document = cxCalloc(a, sizeof(UiDoc) + size, 1);
document->ctx = ctx;
+ ctx->self_doc = document;
return &document->doc;
}