Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
628df3bf
Commit
628df3bf
authored
Jul 30, 1993
by
Jim Blandy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* window.c (check_frame_size): Include the menu bar height in the
minimum frame height.
parent
768c29d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
src/window.c
src/window.c
+6
-2
No files found.
src/window.c
View file @
628df3bf
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment