mirror of
https://github.com/emacs-exwm/exwm.git
synced 2025-01-22 07:58:01 +01:00
Check Emacs version at runtime as well
Checking only at compile time would lead to bugs when the user upgrades to a new Emacs version, and the cost of checking at runtime is negligible. * exwm-layout.el (exwm-layout--show): check version at runtime.
This commit is contained in:
parent
9cdfe95066
commit
10bd61dbcf
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ 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))
|
(when (< emacs-major-version 31)
|
||||||
(setq y (+ y (window-tab-line-height window))))
|
(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
|
||||||
|
|
Loading…
Reference in a new issue