diff options
author | Martin Rudalics <[email protected]> | 2008-05-01 10:12:50 +0000 |
---|---|---|
committer | Martin Rudalics <[email protected]> | 2008-05-01 10:12:50 +0000 |
commit | f8748f0fa04855a4dc0be81f7a5d05e4d7cdf730 (patch) | |
tree | e490d25ebda1ce3b0e330bf742c794921a2e8fbe /src | |
parent | 6f8a4190440a7d180dd72748422f1419c47e28c7 (diff) |
(change_frame_size_1): Preserve small windows when shrinking
frames by calling set_window_height|width with third arg 2.
Diffstat (limited to 'src')
-rw-r--r-- | src/dispnew.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dispnew.c b/src/dispnew.c index 4f6e6374da..ccfac54575 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -6341,7 +6341,7 @@ change_frame_size_1 (f, newheight, newwidth, pretend, delay, safe) (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 @@ change_frame_size_1 (f, newheight, newwidth, pretend, delay, safe) 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 @@ change_frame_size_1 (f, newheight, newwidth, pretend, delay, safe) 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); |