]> git.eshelyaron.com Git - emacs.git/commitdiff
Take the tab-line into account when computing the window edges
authorSteven Allen <steven@stebalien.com>
Wed, 15 Jan 2025 07:56:08 +0000 (23:56 -0800)
committerEshel Yaron <me@eshelyaron.com>
Fri, 17 Jan 2025 11:35:08 +0000 (12:35 +0100)
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

index 3c4f584606d8382b2cde82866dbeb54adebcf4d1..b8798e09f8b3239fde0179a20e3a74cd9aed859b 100644 (file)
@@ -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))))