diff --git a/exwm-input.el b/exwm-input.el index d0ae4ad81..9b9816e97 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))))