{
struct frame *root = root_frame (f);
+ if (!root->after_make_frame)
+ return;
+
/* Determine visible frames on the root frame, including the root
frame itself. Note that there are cases, see bug#75056, where we
can be called for invisible frames. This looks like a bug with
for (Lisp_Object tail = XCDR (z_order); CONSP (tail); tail = XCDR (tail))
{
topmost_child = XFRAME (XCAR (tail));
- copy_child_glyphs (root, topmost_child);
+ if (topmost_child->after_make_frame)
+ copy_child_glyphs (root, topmost_child);
}
update_begin (root);
for (; CONSP (roots); roots = XCDR (roots))
{
struct frame *root = XFRAME (XCAR (roots));
- combine_updates_for_frame (root, false);
+ if (root->after_make_frame)
+ combine_updates_for_frame (root, false);
}
}