mirror of
https://github.com/ch11ng/exwm.git
synced 2024-11-27 13:07:59 +01:00
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:
parent
3edf2e8880
commit
71ecd8e366
1 changed files with 2 additions and 1 deletions
|
@ -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))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue