aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorJim Blandy1993-07-30 01:48:19 +0000
committerJim Blandy1993-07-30 01:48:19 +0000
commit628df3bfd9b83f5d7adfe7286a21b52f1f3e8d18 (patch)
tree97e3fd7adbb418e654137e1fcd57424db1918b1c /src/window.c
parent768c29d02fd693e801d9010b787b14cc980e5188 (diff)
downloademacs-628df3bfd9b83f5d7adfe7286a21b52f1f3e8d18.tar.gz
emacs-628df3bfd9b83f5d7adfe7286a21b52f1f3e8d18.zip
* window.c (check_frame_size): Include the menu bar height in the
minimum frame height.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c
index 6d346fef410..c02611b84f8 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1409,12 +1409,16 @@ check_frame_size (frame, rows, cols)
1409 FRAME_PTR frame; 1409 FRAME_PTR frame;
1410 int *rows, *cols; 1410 int *rows, *cols;
1411{ 1411{
1412 /* For height, we have to see whether the frame has a minibuffer, and 1412 /* For height, we have to see:
1413 whether it wants a mode line. */ 1413 whether the frame has a minibuffer,
1414 whether it wants a mode line, and
1415 whether it has a menu bar. */
1414 int min_height = 1416 int min_height =
1415 (FRAME_MINIBUF_ONLY_P (frame) ? MIN_SAFE_WINDOW_HEIGHT - 1 1417 (FRAME_MINIBUF_ONLY_P (frame) ? MIN_SAFE_WINDOW_HEIGHT - 1
1416 : (! FRAME_HAS_MINIBUF_P (frame)) ? MIN_SAFE_WINDOW_HEIGHT 1418 : (! FRAME_HAS_MINIBUF_P (frame)) ? MIN_SAFE_WINDOW_HEIGHT
1417 : 2 * MIN_SAFE_WINDOW_HEIGHT - 1); 1419 : 2 * MIN_SAFE_WINDOW_HEIGHT - 1);
1420 if (FRAME_MENU_BAR_LINES (frame) > 0)
1421 min_height += FRAME_MENU_BAR_LINES (frame);
1418 1422
1419 if (*rows < min_height) 1423 if (*rows < min_height)
1420 *rows = min_height; 1424 *rows = min_height;