From: Steven Allen Date: Wed, 15 Jan 2025 07:56:08 +0000 (-0800) Subject: Take the tab-line into account when computing the window edges X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b3ca2b05386bf335310f58ba287b09a606941b64;p=emacs.git 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) (cherry picked from commit ec20ebf2413ca1042cd41e3a278d18f1fc1debf6) --- diff --git a/lisp/window.el b/lisp/window.el index 3c4f584606d..b8798e09f8b 100644 --- a/lisp/window.el +++ b/lisp/window.el @@ -3769,7 +3769,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))))