which cause PDCurses to hang (although it's not yet clear why). Until I
have something better...
This commit is contained in:
William McBrine
2012-11-26 08:22:50 +00:00
parent 828a5aeb8b
commit f70e21f91b

View File

@@ -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 <DECkeysym.h>
@@ -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 */
}