changeset 80905:78fb9f483b33

(XTread_socket): Yet another uncaught X error crash (YAUXEC).
author Chong Yidong <cyd@stupidchicken.com>
date Sat, 12 May 2007 23:28:16 +0000
parents 396b2c2d1a33
children e433e5f4e8ed
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:28:05 2007 +0000
+++ b/src/xterm.c	Sat May 12 23:28:16 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 */
     }