From f70e21f91b1de7ffe424f20fe28bbb34df4625aa Mon Sep 17 00:00:00 2001 From: William McBrine Date: Mon, 26 Nov 2012 08:22:50 +0000 Subject: [PATCH] Reverse the effects of http://lists.x.org/archives/xorg-devel/2011-March/019981.html , which cause PDCurses to hang (although it's not yet clear why). Until I have something better... --- x11/x11.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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 */ }