aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPip Cet2025-07-09 14:09:53 +0000
committerPip Cet2025-07-09 14:09:53 +0000
commita76506f131b2d47b0e1dc59ecd6c581e431d298c (patch)
tree2fdb7871b3e9d17f71b9d280b377adbcc3eabe6f /src
parent8497cfeaeac832ff98730388567526a42b321d85 (diff)
downloademacs-a76506f131b2d47b0e1dc59ecd6c581e431d298c.tar.gz
emacs-a76506f131b2d47b0e1dc59ecd6c581e431d298c.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/frame.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/frame.c b/src/frame.c
index 70e200d9219..36ce36436f3 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -364,8 +364,8 @@ frame_redisplay_p (struct frame *f)
364{ 364{
365 if (is_tty_frame (f)) 365 if (is_tty_frame (f))
366 { 366 {
367 struct frame *p = FRAME_PARENT_FRAME (f); 367 struct frame *p = f;
368 struct frame *q = NULL; 368 struct frame *q = f;
369 369
370 while (p) 370 while (p)
371 { 371 {
@@ -387,7 +387,7 @@ frame_redisplay_p (struct frame *f)
387 frame of its terminal. Any other tty frame can be redisplayed 387 frame of its terminal. Any other tty frame can be redisplayed
388 iff it is the top frame of its terminal itself which must be 388 iff it is the top frame of its terminal itself which must be
389 always visible. */ 389 always visible. */
390 return (q ? q == r : f == r); 390 return q == r;
391 } 391 }
392 else 392 else
393#ifndef HAVE_X_WINDOWS 393#ifndef HAVE_X_WINDOWS