1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-04 11:40:22 +00:00

Fix a crash when an X connection is dropped in some situations

* src/xterm.c (x_flip_and_flush): Don't try to flush if
`inhibit-redisplay' is t.
This commit is contained in:
Po Lu 2022-05-18 09:07:41 +08:00
parent 961cec0a7d
commit 8b98f87b92

View File

@ -5618,6 +5618,12 @@ show_back_buffer (struct frame *f)
static void
x_flip_and_flush (struct frame *f)
{
/* Flipping buffers requires a working connection to the X server,
which isn't always present if `inhibit-redisplay' is t, since
this can be called from the IO error handler. */
if (!NILP (Vinhibit_redisplay))
return;
block_input ();
#ifdef HAVE_XDBE
if (FRAME_X_NEED_BUFFER_FLIP (f))