Take the tab-line into account when computing the window edges

window-body-height correctly subtracts the tab-line's height but
window-edges did not add this same height to the y-offset.

See https://github.com/emacs-exwm/exwm/pull/114

* lisp/window.el (window-edges): Add the tab-line-height to the y-offet
of the window body.  (Bug#75576)
This commit is contained in:
Steven Allen 2025-01-14 23:56:08 -08:00 committed by Juri Linkov
parent 74dc2bd280
commit ec20ebf241

View file

@ -3828,7 +3828,8 @@ ABSOLUTE is non-nil, PIXELWISE is implicitly non-nil too."
(top-body
(when body
(+ (window-pixel-top window) border-width
(window-header-line-height window))))
(window-header-line-height window)
(window-tab-line-height window))))
(right (+ left (if pixelwise
(window-pixel-width window)
(window-total-width window))))