From: Po Lu Date: Thu, 19 May 2022 09:36:24 +0000 (+0800) Subject: Fix tooltip buffer flipping inside popup menus X-Git-Tag: emacs-29.0.90~1910^2~587 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0a4d9f26ee9b24ecf0a8b1fb14d4b4bab5daa3ae;p=emacs.git 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) --- 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 ();