aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChong Yidong2006-03-14 15:38:43 +0000
committerChong Yidong2006-03-14 15:38:43 +0000
commit8a34117e23756a7e6e5f3f1a00d46774e6f35975 (patch)
treea2f8004fd20163261cd393c8bc0ffd2dd59d030c /src
parent37d2ef66f705b72f9937740a6455c57e99cfce05 (diff)
downloademacs-8a34117e23756a7e6e5f3f1a00d46774e6f35975.tar.gz
emacs-8a34117e23756a7e6e5f3f1a00d46774e6f35975.zip
* xterm.c (x_uncatch_errors): Block input for entire function.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/xterm.c9
2 files changed, 8 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index e1b3b52e7d6..f6edc410276 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12006-03-14 Chong Yidong <cyd@stupidchicken.com>
2
3 * xterm.c (x_uncatch_errors): Block input for entire function.
4
12006-03-12 Jason Rumney <jasonr@gnu.org> 52006-03-12 Jason Rumney <jasonr@gnu.org>
2 6
3 * w32fns.c (Fx_create_frame): Remove call to 7 * 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 ()
7533{ 7533{
7534 struct x_error_message_stack *tmp; 7534 struct x_error_message_stack *tmp;
7535 7535
7536 BLOCK_INPUT;
7537
7536 /* The display may have been closed before this function is called. 7538 /* The display may have been closed before this function is called.
7537 Check if it is still open before calling XSync. */ 7539 Check if it is still open before calling XSync. */
7538 if (x_display_info_for_display (x_error_message->dpy) != 0) 7540 if (x_display_info_for_display (x_error_message->dpy) != 0)
7539 { 7541 XSync (x_error_message->dpy, False);
7540 BLOCK_INPUT;
7541 XSync (x_error_message->dpy, False);
7542 UNBLOCK_INPUT;
7543 }
7544 7542
7545 tmp = x_error_message; 7543 tmp = x_error_message;
7546 x_error_message = x_error_message->prev; 7544 x_error_message = x_error_message->prev;
7547 xfree (tmp); 7545 xfree (tmp);
7546 UNBLOCK_INPUT;
7548} 7547}
7549 7548
7550/* If any X protocol errors have arrived since the last call to 7549/* If any X protocol errors have arrived since the last call to