From 1aa84454cad44695c527bc0d981108c384364412 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Sat, 12 May 2007 23:35:31 +0000 Subject: [PATCH] (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC). --- src/xterm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xterm.c b/src/xterm.c index 4f77e22ac59..9adb2b2c259 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -7065,6 +7065,7 @@ XTread_socket (sd, expected, hold_quit) #endif #ifndef USE_GTK + x_catch_errors (dpyinfo->display); while (XPending (dpyinfo->display)) { int finish; @@ -7083,6 +7084,7 @@ XTread_socket (sd, expected, hold_quit) if (finish == X_EVENT_GOTO_OUT) goto out; } + x_uncatch_errors (); #endif /* not USE_GTK */ } -- 2.39.2