diff -r 91696f7fa475 -r 6ec3c71ba298 ui/common/context.h --- a/ui/common/context.h Sat Jun 13 14:12:43 2026 +0200 +++ b/ui/common/context.h Sat Jun 13 17:08:09 2026 +0200 @@ -98,8 +98,14 @@ // attaching a document will automatically detach the current document UiBool single_document_mode; - ui_callback close_callback; - void *close_data; + ui_callback onattach; + void *onattachdata; + + ui_callback ondetach; + void *ondetachdata; + + ui_callback onclose; + void *onclosedata; unsigned int ref; };