--- a/ui/motif/window.c Mon Jun 16 21:21:00 2025 +0200 +++ b/ui/motif/window.c Mon Jun 16 21:41:55 2025 +0200 @@ -70,8 +70,7 @@ static UiObject* create_window(const char *title, void *window_data, Boolean simple) { CxMempool *mp = cxMempoolCreateSimple(256); const CxAllocator *a = mp->allocator; - UiObject *obj = cxCalloc(a, 1, sizeof(UiObject)); - obj->ctx = uic_context(obj, mp); + UiObject *obj = uic_object_new_toplevel(); obj->window = window_data; obj->destroy = ui_window_widget_destroy;