Mercurial > emacs
changeset 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 | 63d7389cb46f |
children | 0c2790d73955 |
files | src/ChangeLog src/xterm.c |
diffstat | 2 files changed, 8 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Tue Mar 14 10:20:51 2006 +0000 +++ b/src/ChangeLog Tue Mar 14 15:38:43 2006 +0000 @@ -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
--- 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