diff -r 1524b5dc4d4d -r 0accf125a65f ui/common/document.c --- 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; }