avoid running the focus timer immediately

see https://www.gnu.org/software/emacs/manual/html_node/elisp/Idle-Timers.html

fixes #310
This commit is contained in:
Steven Allen 2017-10-13 15:43:05 -07:00
parent 3edf2e8880
commit 71ecd8e366

View file

@ -189,7 +189,8 @@ This value should always be overwritten.")
(when exwm-input--update-focus-timer (when exwm-input--update-focus-timer
(cancel-timer exwm-input--update-focus-timer)) (cancel-timer exwm-input--update-focus-timer))
(setq exwm-input--update-focus-timer (setq exwm-input--update-focus-timer
(run-with-idle-timer exwm-input--update-focus-interval nil (run-with-idle-timer (time-add (current-idle-time) exwm-input--update-focus-interval)
nil
#'exwm-input--update-focus #'exwm-input--update-focus
exwm-input--update-focus-window)))) exwm-input--update-focus-window))))