summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Event.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/Event.c b/src/Event.c
index 7be5987..11823d6 100644
--- a/src/Event.c
+++ b/src/Event.c
@@ -1549,15 +1549,9 @@ void XtMainLoop(void)
void XtAppMainLoop(
XtAppContext app)
{
- XEvent event;
-
LOCK_APP(app);
do {
- XtAppNextEvent(app, &event);
-#ifdef XTHREADS
- /* assert(app == XtDisplayToApplicationContext(event.xany.display)); */
-#endif
- XtDispatchEvent(&event);
+ XtAppProcessEvent(app, XtIMAll);
} while(app->exit_flag == FALSE);
UNLOCK_APP(app);
}