Ensure redisplay after re-parenting a tty child frame (Bug#77079)

* 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).
This commit is contained in:
Martin Rudalics 2025-03-18 09:17:52 +01:00
parent 5a4b9ca736
commit 739d18dc41

View 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