From: Chong Yidong Date: Tue, 14 Mar 2006 15:38:43 +0000 (+0000) Subject: * xterm.c (x_uncatch_errors): Block input for entire function. X-Git-Tag: emacs-pretest-22.0.90~3617 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8a34117e23756a7e6e5f3f1a00d46774e6f35975;p=emacs.git * xterm.c (x_uncatch_errors): Block input for entire function. --- diff --git a/src/ChangeLog b/src/ChangeLog index e1b3b52e7d6..f6edc410276 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2006-03-14 Chong Yidong + + * xterm.c (x_uncatch_errors): Block input for entire function. + 2006-03-12 Jason Rumney * w32fns.c (Fx_create_frame): Remove call to diff --git a/src/xterm.c b/src/xterm.c index 92b245f2b32..30a41574e82 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -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