Mercurial > emacs
changeset 94513:5b9bb0c0273a
(change_frame_size_1): Preserve small windows when shrinking
frames by calling set_window_height|width with third arg 2.
author | Martin Rudalics <rudalics@gmx.at> |
---|---|
date | Thu, 01 May 2008 10:12:50 +0000 |
parents | d10cd2d8d9ae |
children | befafb2d0928 |
files | src/dispnew.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dispnew.c Thu May 01 07:17:08 2008 +0000 +++ b/src/dispnew.c Thu May 01 10:12:50 2008 +0000 @@ -6341,7 +6341,7 @@ (newheight - 1 - FRAME_TOP_MARGIN (f)), - 0); + 2); XSETFASTINT (XWINDOW (FRAME_MINIBUF_WINDOW (f))->top_line, newheight - 1); set_window_height (FRAME_MINIBUF_WINDOW (f), 1, 0); @@ -6349,7 +6349,7 @@ else /* Frame has just one top-level window. */ set_window_height (FRAME_ROOT_WINDOW (f), - newheight - FRAME_TOP_MARGIN (f), 0); + newheight - FRAME_TOP_MARGIN (f), 2); if (FRAME_TERMCAP_P (f) && !pretend) FrameRows (FRAME_TTY (f)) = newheight; @@ -6357,7 +6357,7 @@ if (new_frame_total_cols != FRAME_TOTAL_COLS (f)) { - set_window_width (FRAME_ROOT_WINDOW (f), new_frame_total_cols, 0); + set_window_width (FRAME_ROOT_WINDOW (f), new_frame_total_cols, 2); if (FRAME_HAS_MINIBUF_P (f)) set_window_width (FRAME_MINIBUF_WINDOW (f), new_frame_total_cols, 0);