diff -r db47e814b4c5 -r f3e2811ecf3a ui/motif/toolkit.c --- a/ui/motif/toolkit.c Thu Jan 08 18:17:06 2026 +0100 +++ b/ui/motif/toolkit.c Sat Jan 10 19:44:10 2026 +0100 @@ -221,6 +221,11 @@ } void ui_call_mainthread(ui_threadfunc tf, void* td) { + if(uic_mainthread_calls_is_buffered()) { + uic_add_buffered_mainthread_call(tf, td); + return; + } + UiJob *job = malloc(sizeof(UiJob)); memset(job, 0, sizeof(UiJob)); job->job_func = tf;