diff src/xterm.c @ 69467:3bec252ca789

* xterm.c (x_uncatch_errors): Block input for entire function.
author Chong Yidong <cyd@stupidchicken.com>
date Tue, 14 Mar 2006 15:38:43 +0000
parents 1fe13d52e977
children cd511b21f729 203c9b24206b
line wrap: on
line diff
--- a/src/xterm.c	Tue Mar 14 10:20:51 2006 +0000
+++ b/src/xterm.c	Tue Mar 14 15:38:43 2006 +0000
@@ -7533,18 +7533,17 @@
 {
   struct x_error_message_stack *tmp;
 
+  BLOCK_INPUT;
+
   /* The display may have been closed before this function is called.
      Check if it is still open before calling XSync.  */
   if (x_display_info_for_display (x_error_message->dpy) != 0)
-    {
-      BLOCK_INPUT;
-      XSync (x_error_message->dpy, False);
-      UNBLOCK_INPUT;
-    }
+    XSync (x_error_message->dpy, False);
 
   tmp = x_error_message;
   x_error_message = x_error_message->prev;
   xfree (tmp);
+  UNBLOCK_INPUT;
 }
 
 /* If any X protocol errors have arrived since the last call to