ui/motif/toolkit.c

changeset 28
794a5c91c479
parent 27
77b09bb52ca0
child 29
c96169444d88
--- 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);

mercurial