From 0a4d9f26ee9b24ecf0a8b1fb14d4b4bab5daa3ae Mon Sep 17 00:00:00 2001 From: Po Lu Date: Thu, 19 May 2022 17:36:24 +0800 Subject: [PATCH] Fix tooltip buffer flipping inside popup menus * src/xterm.c (x_flip_and_flush): Don't ignore if `inhibit-redisplay' but F is a tooltip frame. (bug#55519) --- src/xterm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/xterm.c b/src/xterm.c index 48329a2fcaa..db3f41e688b 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -5621,7 +5621,10 @@ 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)) + if (!NILP (Vinhibit_redisplay) + /* This has to work for tooltip frames, however, and redisplay + cannot happen when they are being flushed anyway. (bug#55519) */ + && !FRAME_TOOLTIP_P (f)) return; block_input (); -- 2.39.2