changeset 77690:438a63207e7a

(XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
author Chong Yidong <cyd@stupidchicken.com>
date Sat, 12 May 2007 23:35:31 +0000
parents 8cba28b4f1b7
children bf3050d47905
files src/xterm.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Sat May 12 23:35:24 2007 +0000
+++ b/src/xterm.c	Sat May 12 23:35:31 2007 +0000
@@ -7065,6 +7065,7 @@
 #endif
 
 #ifndef USE_GTK
+      x_catch_errors (dpyinfo->display);
       while (XPending (dpyinfo->display))
 	{
           int finish;
@@ -7083,6 +7084,7 @@
           if (finish == X_EVENT_GOTO_OUT)
             goto out;
         }
+      x_uncatch_errors ();
 #endif /* not USE_GTK */
     }