static void
check_window_matrix_pointers (struct window *w)
{
- while (w)
+ struct frame *f = XFRAME (w->frame);
+
+ if (f->after_make_frame)
{
- if (WINDOWP (w->contents))
- check_window_matrix_pointers (XWINDOW (w->contents));
- else
+ while (w)
{
- struct frame *f = XFRAME (w->frame);
- check_matrix_pointers (w->desired_matrix, f->desired_matrix);
- check_matrix_pointers (w->current_matrix, f->current_matrix);
- }
+ if (WINDOWP (w->contents))
+ check_window_matrix_pointers (XWINDOW (w->contents));
+ else
+ {
+ check_matrix_pointers (w->desired_matrix, f->desired_matrix);
+ check_matrix_pointers (w->current_matrix, f->current_matrix);
+ }
- w = NILP (w->next) ? 0 : XWINDOW (w->next);
+ w = NILP (w->next) ? 0 : XWINDOW (w->next);
+ }
}
}