Commit 5cd43233 authored by Karoly Lorentey's avatar Karoly Lorentey
Browse files

Inhibit redisplay while frames are being deleted after an X disconnect.

* src/xterm.c (x_connection_closed): Inhibit redisplay while frames are
  being deleted.

parent fd15a4da
......@@ -275,7 +275,8 @@ Friedrich Delgado Friedrichs <friedel at nomaden dot org>
IRIE Tetsuya <irie at t dot email dot ne dot jp>
Yoshiaki Kasahara <kasahara at nc dot kyushu-u dot ac dot jp>
Jurej Kubelka <Juraj dot Kubelka at email dot cz>
Istvan Marko <mi-mtty ar kismala dot com>
David Lichteblau <david at lichteblau dot com>
Istvan Marko <mi-mtty at kismala dot com>
Ted Morse <morse at ciholas dot com>
Dan Nicolaescu <dann at ics dot uci dot edu>
Gergely Nagy <algernon at debian dot org>
......@@ -7728,6 +7728,7 @@ x_connection_closed (dpy, error_message)
struct x_display_info *dpyinfo = x_display_info_for_display (dpy);
Lisp_Object frame, tail;
int count;
int index = SPECPDL_INDEX ();
error_msg = (char *) alloca (strlen (error_message) + 1);
strcpy (error_msg, error_message);
......@@ -7775,6 +7776,9 @@ x_connection_closed (dpy, error_message)
if (dpyinfo)
dpyinfo->display = 0;
/* Inhibit redisplay while frames are being deleted. */
specbind (Qinhibit_redisplay, Qt);
/* First delete frames whose mini-buffers are on frames
that are on the dead display. */
FOR_EACH_FRAME (tail, frame)
......@@ -7821,6 +7825,7 @@ x_connection_closed (dpy, error_message)
sigunblock (sigmask (SIGALRM));
unbind_to (index, Qnil);
clear_waiting_for_input ();
error ("%s", error_msg);
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