mirror of
https://github.com/emacs-exwm/exwm.git
synced 2025-01-22 16:08:00 +01:00
Work around a bug where the tab-line isn't taken into account
In Emacs before version 31, window-inside-absolute-pixel-edges returns the wrong y-offset when the per-buffer tab-line is enabled. The tab-line is taken into account when computing the window's height, so we adjust the y-offset after computing the height. Fixed upstream in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=75576. * exwm-layout.el (exwm-layout--show): Adjust the window's y-offset to include the tab-line. (Bug emacs-exwm/exwm#114)
This commit is contained in:
parent
26d24e534a
commit
9cdfe95066
1 changed files with 2 additions and 0 deletions
|
@ -117,6 +117,8 @@ See variable `exwm-layout-auto-iconify'."
|
||||||
(width (- (pop edges) x))
|
(width (- (pop edges) x))
|
||||||
(height (- (pop edges) y))
|
(height (- (pop edges) y))
|
||||||
frame-x frame-y frame-width frame-height)
|
frame-x frame-y frame-width frame-height)
|
||||||
|
(when (eval-when-compile (< emacs-major-version 31))
|
||||||
|
(setq y (+ y (window-tab-line-height window))))
|
||||||
(with-current-buffer (exwm--id->buffer id)
|
(with-current-buffer (exwm--id->buffer id)
|
||||||
(when exwm--floating-frame
|
(when exwm--floating-frame
|
||||||
(setq frame-width (frame-pixel-width exwm--floating-frame)
|
(setq frame-width (frame-pixel-width exwm--floating-frame)
|
||||||
|
|
Loading…
Reference in a new issue