aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1993-03-11 07:49:34 +0000
committerRichard M. Stallman1993-03-11 07:49:34 +0000
commitcb470ab168cc8f85aa232977b101c34aead938c6 (patch)
treec916b502d81eda248760e985138c381cc76f4740 /src
parentfa8fdbf9a0dbfcdfdc3ec4589cc26347c0064c26 (diff)
downloademacs-cb470ab168cc8f85aa232977b101c34aead938c6.tar.gz
emacs-cb470ab168cc8f85aa232977b101c34aead938c6.zip
(change_frame_size): Handle FRAME_MENU_BAR_LINES.
Diffstat (limited to 'src')
-rw-r--r--src/dispnew.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index e5044267d3d..cfd7f47d07b 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -1694,14 +1694,15 @@ change_frame_size (frame, newheight, newwidth, pretend, delay)
1694 { 1694 {
1695 /* Frame has both root and minibuffer. */ 1695 /* Frame has both root and minibuffer. */
1696 set_window_height (FRAME_ROOT_WINDOW (frame), 1696 set_window_height (FRAME_ROOT_WINDOW (frame),
1697 newheight - 1, 0); 1697 newheight - 1 - FRAME_MENU_BAR_LINES (frame), 0);
1698 XFASTINT (XWINDOW (FRAME_MINIBUF_WINDOW (frame))->top) 1698 XFASTINT (XWINDOW (FRAME_MINIBUF_WINDOW (frame))->top)
1699 = newheight - 1; 1699 = newheight - 1;
1700 set_window_height (FRAME_MINIBUF_WINDOW (frame), 1, 0); 1700 set_window_height (FRAME_MINIBUF_WINDOW (frame), 1, 0);
1701 } 1701 }
1702 else 1702 else
1703 /* Frame has just one top-level window. */ 1703 /* Frame has just one top-level window. */
1704 set_window_height (FRAME_ROOT_WINDOW (frame), newheight, 0); 1704 set_window_height (FRAME_ROOT_WINDOW (frame),
1705 newheight - FRAME_MENU_BAR_LINES (frame), 0);
1705 1706
1706 if (FRAME_TERMCAP_P (frame) && !pretend) 1707 if (FRAME_TERMCAP_P (frame) && !pretend)
1707 FrameRows = newheight; 1708 FrameRows = newheight;