diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/window.c | 8 |
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; |