about summary refs log tree commit diff
path: root/exwm-input.el
diff options
context:
space:
mode:
Diffstat (limited to 'exwm-input.el')
-rw-r--r--exwm-input.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/exwm-input.el b/exwm-input.el
index d0ae4ad81250..9b9816e9753b 100644
--- a/exwm-input.el
+++ b/exwm-input.el
@@ -549,7 +549,9 @@ instead."
 ;; Putting (t . EVENT) into `unread-command-events' does not really work
 ;; as documented for Emacs < 26.2.
 (eval-and-compile
-  (if (string-version-lessp emacs-version "26.2")
+  (if (or (< emacs-major-version 26)
+          (and (= emacs-major-version 26)
+               (< emacs-minor-version 2)))
       (defsubst exwm-input--unread-event (event)
         (setq unread-command-events
               (append unread-command-events (list event))))