Fix frame-inner-height in non-GUI builds
Include tab bar in frame's inner height in non-GUI builds that don't define tab-bar-height. This is consistent with the inclusion of the menu bar in the calculated height. It is also consistent with TTY frames of GUI builds, for which tab-bar-height is always zero anyway (bug#47234). Fix suggested by Eli Zaretskii <eliz@gnu.org>. * lisp/frame.el (frame-inner-height): Don't assume tab-bar-height is defined in builds --without-x.
This commit is contained in:
parent
d5b160d7cc
commit
bd991e3c9b
1 changed files with 1 additions and 1 deletions
|
@ -1344,7 +1344,7 @@ FRAME defaults to the selected frame."
|
|||
FRAME defaults to the selected frame."
|
||||
(setq frame (window-normalize-frame frame))
|
||||
(- (frame-native-height frame)
|
||||
(tab-bar-height frame t)
|
||||
(if (fboundp 'tab-bar-height) (tab-bar-height frame t) 0)
|
||||
(* 2 (frame-internal-border-width frame))))
|
||||
|
||||
(defun frame-outer-width (&optional frame)
|
||||
|
|
Loading…
Add table
Reference in a new issue