From 11cc84d77e83b81fce8d3032df29d798546648e7 Mon Sep 17 00:00:00 2001 From: Chris Feng Date: Wed, 28 Oct 2015 10:37:18 +0800 Subject: [PATCH] Minor input focus fix * exwm-input.el (exwm-input--on-buffer-list-update): Schedule input focus switch with idle timer. --- exwm-input.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exwm-input.el b/exwm-input.el index 8a9d089..f54c630 100644 --- a/exwm-input.el +++ b/exwm-input.el @@ -99,7 +99,7 @@ It's updated in several occasions, and only used by `exwm-input--set-focus'.") (setq exwm-input--focus-window window) (when exwm-input--timer (cancel-timer exwm-input--timer)) (setq exwm-input--timer - (run-with-timer 0.01 nil #'exwm-input--update-focus))) + (run-with-idle-timer 0.01 nil #'exwm-input--update-focus))) (setq exwm-input--redirected nil)))) (defun exwm-input--on-focus-in ()