Commit 2728b5d0 authored by Jan Djärv's avatar Jan Djärv
Browse files

* xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.

parent 10b43ac3
2004-08-24 Jan Dj,Ad(Brv <>
* xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
* xfns.c (x_window_to_frame, x_any_window_to_frame)
(x_non_menubar_window_to_frame, x_menubar_window_to_frame)
(x_top_window_to_frame): Return 0 if wdesc is None.
......@@ -7604,11 +7604,13 @@ static Lisp_Object
x_catch_errors_unwind (old_val)
Lisp_Object old_val;
Lisp_Object first;
Lisp_Object first = XCAR (old_val);
Display *dpy = XSAVE_VALUE (first)->pointer;
first = XCAR (old_val);
XSync (XSAVE_VALUE (first)->pointer, False);
/* 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 (dpy) != 0)
XSync (dpy, False);
x_error_message_string = XCDR (old_val);
return Qnil;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment