]> git.eshelyaron.com Git - emacs.git/commitdiff
* xterm.c (x_uncatch_errors): Block input for entire function.
authorChong Yidong <cyd@stupidchicken.com>
Tue, 14 Mar 2006 15:38:43 +0000 (15:38 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Tue, 14 Mar 2006 15:38:43 +0000 (15:38 +0000)
src/ChangeLog
src/xterm.c

index e1b3b52e7d69723b5c4414ef7d75af3913ee644a..f6edc4102763ada0ea4ad8d3d4d1d9c6e64ff79b 100644 (file)
@@ -1,3 +1,7 @@
+2006-03-14  Chong Yidong  <cyd@stupidchicken.com>
+
+       * xterm.c (x_uncatch_errors): Block input for entire function.
+
 2006-03-12  Jason Rumney  <jasonr@gnu.org>
 
        * w32fns.c (Fx_create_frame): Remove call to
index 92b245f2b32a26cd4577e3630a51eb30db5536cc..30a41574e82288fb82c77987c1973aa7b3f10f63 100644 (file)
@@ -7533,18 +7533,17 @@ x_uncatch_errors ()
 {
   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