# HG changeset patch # User Richard M. Stallman # Date 760232877 0 # Node ID eb44ecad5557c0faf0b7ef3f6360e03cc6761fea # Parent 412ac1a01f466e1a3f4e254d54d936928618cd09 (XTread_socket): Add X_IO_BUG conditional. diff -r 412ac1a01f46 -r eb44ecad5557 src/xterm.c --- a/src/xterm.c Wed Feb 02 23:45:08 1994 +0000 +++ b/src/xterm.c Wed Feb 02 23:47:57 1994 +0000 @@ -3618,6 +3618,13 @@ } } +#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) {