From: Richard M. Stallman Date: Wed, 2 Feb 1994 23:47:57 +0000 (+0000) Subject: (XTread_socket): Add X_IO_BUG conditional. X-Git-Tag: emacs-19.34~10098 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=502add23f1e6d396208ff04042f1c533cb152538;p=emacs.git (XTread_socket): Add X_IO_BUG conditional. --- diff --git a/src/xterm.c b/src/xterm.c index 7f0419e6f61..4fef2abc72e 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -3618,6 +3618,13 @@ XTread_socket (sd, bufp, numchars, waitp, expected) } } +#ifdef X_IO_BUG + if (! event_found) + /* On some systems, an X bug causes Emacs to get no more events + when the window is destroyed. Detect that. */ + XNoOp (x_current_display); +#endif /* X_IO_BUG */ + #ifdef HAVE_SELECT if (expected && ! event_found) {