diff --git a/x11/x11.c b/x11/x11.c index 1f579285..65dba7a1 100644 --- a/x11/x11.c +++ b/x11/x11.c @@ -2,7 +2,7 @@ #include "pdcx11.h" -RCSID("$Id: x11.c,v 1.95 2011/04/20 22:13:34 wmcbrine Exp $") +RCSID("$Id: x11.c,v 1.96 2012/11/26 08:22:50 wmcbrine Exp $") #ifdef HAVE_DECKEYSYM_H # include @@ -3236,7 +3236,15 @@ int XCursesSetupX(int argc, char *argv[]) #endif /* Wait for events */ + { + XEvent event; + + for (;;) /* forever */ + { + XtAppNextEvent(app_context, &event); + XtDispatchEvent(&event); + } + } - XtAppMainLoop(app_context); return OK; /* won't get here */ }