Function: window-resize-apply-total
window-resize-apply-total is a function defined in window.c.
Signature
(window-resize-apply-total &optional FRAME HORIZONTAL)
Documentation
Apply requested total size values for window-tree of FRAME.
If FRAME is omitted or nil, it defaults to the selected frame.
This function does not assign pixel or normal size values. You should
have run window-resize-apply before running this.
Optional argument HORIZONTAL omitted or nil means apply requested height values. HORIZONTAL non-nil means apply requested width values.
Source Code
// Defined in /usr/src/emacs/src/window.c
{
struct frame *f = decode_live_frame (frame);
struct window *r = XWINDOW (FRAME_ROOT_WINDOW (f));
block_input ();
/* Necessary when deleting the top-/or leftmost window. */
r->left_col = 0;
r->top_line = FRAME_TOP_MARGIN (f);
window_resize_apply_total (r, !NILP (horizontal));
/* Handle the mini window. */
if (FRAME_HAS_MINIBUF_P (f) && !FRAME_MINIBUF_ONLY_P (f))
{
struct window *m = XWINDOW (f->minibuffer_window);
if (NILP (horizontal))
{
m->top_line = r->top_line + r->total_lines;
m->total_lines = XFIXNAT (m->new_total);
}
else
m->total_cols = XFIXNAT (m->new_total);
}
unblock_input ();
return Qt;
}