From 10bd61dbcf69110b2b029ac677c38bd076376d21 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Fri, 17 Jan 2025 09:34:30 -0800 Subject: [PATCH] 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. --- exwm-layout.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exwm-layout.el b/exwm-layout.el index 0a5c5ff..ce53d32 100644 --- a/exwm-layout.el +++ b/exwm-layout.el @@ -117,7 +117,7 @@ See variable `exwm-layout-auto-iconify'." (width (- (pop edges) x)) (height (- (pop edges) y)) 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)))) (with-current-buffer (exwm--id->buffer id) (when exwm--floating-frame