--- a/client/uiclient.c Mon Dec 08 18:11:54 2025 +0100 +++ b/client/uiclient.c Wed Dec 10 19:04:46 2025 +0100 @@ -175,15 +175,23 @@ } int msg_simple_window(UiObject *parent, const CxJsonValue *value) { + cxmutstr obj_id = jsonobj_getstring(value, "obj_id"); cxmutstr id = jsonobj_getstring(value, "id"); cxmutstr title = jsonobj_getstring(value, "title"); - if(!id.ptr) { + if(!obj_id.ptr) { + return 1; + } + if(!id) { return 1; } UiObject *obj = ui_simple_window(title.ptr, NULL); - client_add_obj_mapping(obj, id); + client_add_obj_mapping(obj, obj_id); + + if(obj->widget) { + client_reg_widget(obj, id, obj->widget); + } return client_handle_children(obj, value); }