]> git.eshelyaron.com Git - emacs.git/commitdiff
* window.c (check_frame_size): Include the menu bar height in the
authorJim Blandy <jimb@redhat.com>
Fri, 30 Jul 1993 01:48:19 +0000 (01:48 +0000)
committerJim Blandy <jimb@redhat.com>
Fri, 30 Jul 1993 01:48:19 +0000 (01:48 +0000)
minimum frame height.

src/window.c

index 6d346fef4102f84e22aa73c3d664f8bc96f6e065..c02611b84f84f9ea4df6e6bad9f25f8f38e8e6e1 100644 (file)
@@ -1409,12 +1409,16 @@ check_frame_size (frame, rows, cols)
      FRAME_PTR frame;
      int *rows, *cols;
 {
-  /* For height, we have to see whether the frame has a minibuffer, and
-     whether it wants a mode line.  */
+  /* For height, we have to see:
+     whether the frame has a minibuffer, 
+     whether it wants a mode line, and
+     whether it has a menu bar.  */
   int min_height =
     (FRAME_MINIBUF_ONLY_P (frame) ? MIN_SAFE_WINDOW_HEIGHT - 1
      : (! FRAME_HAS_MINIBUF_P (frame)) ? MIN_SAFE_WINDOW_HEIGHT
      : 2 * MIN_SAFE_WINDOW_HEIGHT - 1);
+  if (FRAME_MENU_BAR_LINES (frame) > 0)
+    min_height += FRAME_MENU_BAR_LINES (frame);
 
   if (*rows < min_height)
     *rows = min_height;