diff -r 77b09bb52ca0 -r 794a5c91c479 ui/motif/toolkit.c --- a/ui/motif/toolkit.c Sat Apr 05 18:41:30 2014 +0200 +++ b/ui/motif/toolkit.c Sun Apr 06 13:21:37 2014 +0200 @@ -88,6 +88,14 @@ uic_store_app_properties(); } +void ui_secondary_event_loop(int *loop) { + while(*loop && !XtAppGetExitFlag(app)) { + XEvent event; + XtAppNextEvent(app, &event); + XtDispatchEvent(&event); + } +} + void ui_show(UiObject *obj) { uic_check_group_widgets(obj->ctx); XtRealizeWidget(obj->widget);