]> git.eshelyaron.com Git - emacs.git/commitdiff
Ensure redisplay after re-parenting a tty child frame (Bug#77079)
authorMartin Rudalics <rudalics@gmx.at>
Tue, 18 Mar 2025 08:17:52 +0000 (09:17 +0100)
committerEshel Yaron <me@eshelyaron.com>
Thu, 20 Mar 2025 10:51:07 +0000 (12:51 +0200)
* src/frame.c (store_frame_param): When re-parenting a tty child
frame, mark it's old and new root frames as garbaged so redisplay
will reflect the change immediately (Bug#77079).

(cherry picked from commit 739d18dc41234824f4f01bfaa2313510e2df14a7)

src/frame.c

index a7b09482df95548c98e2c8f5d4f915ade9202139..e49bdca5c5be69f44cb3ae46cfa4a4063c61aa59 100644 (file)
@@ -3705,7 +3705,10 @@ store_frame_param (struct frame *f, Lisp_Object prop, Lisp_Object val)
     {
       if (NILP (f->parent_frame) != NILP (val))
        error ("Making a root frame a child or vice versa is not supported");
+
+      SET_FRAME_GARBAGED (root_frame (f));
       f->parent_frame = val;
+      SET_FRAME_GARBAGED (root_frame (f));
     }
 
   /* The tty color needed to be set before the frame's parameter