From: Pip Cet Date: Wed, 9 Jul 2025 14:09:53 +0000 (+0000) Subject: Fix crashes when "emacsclient -nw" frames are suspended (bug#78980) X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3205d3d51d9142ce7fa770692c9cd9aca5a728e4;p=emacs.git Fix crashes when "emacsclient -nw" frames are suspended (bug#78980) * src/frame.c (frame_redisplay_p): Start loop with 'f', not its parent frame. Simplify return expression. (cherry picked from commit a76506f131b2d47b0e1dc59ecd6c581e431d298c) --- diff --git a/src/frame.c b/src/frame.c index d256b4fdfbb..fcd8c422b45 100644 --- a/src/frame.c +++ b/src/frame.c @@ -364,8 +364,8 @@ frame_redisplay_p (struct frame *f) { if (is_tty_frame (f)) { - struct frame *p = FRAME_PARENT_FRAME (f); - struct frame *q = NULL; + struct frame *p = f; + struct frame *q = f; while (p) { @@ -387,7 +387,7 @@ frame_redisplay_p (struct frame *f) frame of its terminal. Any other tty frame can be redisplayed iff it is the top frame of its terminal itself which must be always visible. */ - return (q ? q == r : f == r); + return q == r; } else #ifndef HAVE_X_WINDOWS