aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 6eb106e5b3f..e7fb798eb60 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -6180,7 +6180,7 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit)
6180 f = x_top_window_to_frame (dpyinfo, event.xmap.window); 6180 f = x_top_window_to_frame (dpyinfo, event.xmap.window);
6181 if (f) 6181 if (f)
6182 { 6182 {
6183 /* wait_reading_process_input will notice this and update 6183 /* wait_reading_process_output will notice this and update
6184 the frame's display structures. 6184 the frame's display structures.
6185 If we where iconified, we should not set garbaged, 6185 If we where iconified, we should not set garbaged,
6186 because that stops redrawing on Expose events. This looks 6186 because that stops redrawing on Expose events. This looks
@@ -7611,11 +7611,13 @@ static Lisp_Object
7611x_catch_errors_unwind (old_val) 7611x_catch_errors_unwind (old_val)
7612 Lisp_Object old_val; 7612 Lisp_Object old_val;
7613{ 7613{
7614 Lisp_Object first; 7614 Lisp_Object first = XCAR (old_val);
7615 Display *dpy = XSAVE_VALUE (first)->pointer;
7615 7616
7616 first = XCAR (old_val); 7617 /* The display may have been closed before this function is called.
7617 7618 Check if it is still open before calling XSync. */
7618 XSync (XSAVE_VALUE (first)->pointer, False); 7619 if (x_display_info_for_display (dpy) != 0)
7620 XSync (dpy, False);
7619 7621
7620 x_error_message_string = XCDR (old_val); 7622 x_error_message_string = XCDR (old_val);
7621 return Qnil; 7623 return Qnil;