From b3ca2b05386bf335310f58ba287b09a606941b64 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Tue, 14 Jan 2025 23:56:08 -0800 Subject: [PATCH] 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) --- lisp/window.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)))) -- 2.39.5