{
/* If we have an unhandled SIGWINCH, we don't really know what our
up-to-date frame dimensions are. */
- if (frame_size_change_delayed ())
+ if (frame_size_change_delayed (XFRAME (tty->top_frame)))
return;
if (curX (tty) == FrameCols (tty))
{
#endif
void do_pending_window_change (bool);
void change_frame_size (struct frame *, int, int, bool, bool, bool);
-extern bool frame_size_change_delayed (void);
+extern bool frame_size_change_delayed (struct frame *);
void init_display (void);
void syms_of_display (void);
extern void spec_glyph_lookup_face (struct window *, GLYPH *);
#ifdef GLYPH_DEBUG
/* Window row window_y must be a slice of frame row
frame_y. */
- eassert (delayed_size_change
+ eassert (frame_size_change_delayed (XFRAME (w->frame))
|| glyph_row_slice_p (window_row, frame_row));
/* If rows are in sync, we don't have to copy glyphs because
eassert (!FRAME_WINDOW_P (XFRAME (w->frame)));
eassert (vpos >= 0 && vpos <= w->desired_matrix->nrows);
vpos += WINDOW_TOP_EDGE_LINE (w);
- eassert (delayed_size_change
+ eassert (frame_size_change_delayed (XFRAME (w->frame))
|| (vpos >= 0 && vpos <= FRAME_TOTAL_LINES (XFRAME (w->frame))));
return vpos;
}
change_frame_size_1 (f, new_width, new_height, pretend, delay, safe);
}
-/* Return non-zero if we delayed size-changes and haven't handled them
- yet, which means we cannot be sure about the exact dimensions of our
- frames. */
+/* Return non-zero if we delayed size-changes of frame F and haven't
+ handled them yet, which means we cannot be sure about the exact
+ dimensions of our frames. */
bool
-frame_size_change_delayed (void)
+frame_size_change_delayed (struct frame *f)
{
- return delayed_size_change;
+ return (delayed_size_change || f->new_size_p);
}
\f
/***********************************************************************