]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix crashes when "emacsclient -nw" frames are suspended (bug#78980)
authorPip Cet <pipcet@protonmail.com>
Wed, 9 Jul 2025 14:09:53 +0000 (14:09 +0000)
committerEshel Yaron <me@eshelyaron.com>
Thu, 24 Jul 2025 07:54:43 +0000 (09:54 +0200)
* src/frame.c (frame_redisplay_p): Start loop with 'f', not its parent
frame.  Simplify return expression.

(cherry picked from commit a76506f131b2d47b0e1dc59ecd6c581e431d298c)

src/frame.c

index d256b4fdfbb4dd26775b11544f59d76bb2161a61..fcd8c422b454b16a4be74e83c90d50894b533987 100644 (file)
@@ -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