Fix: set current window after switching window via click.

This commit is contained in:
Vincent Zhang 2018-06-21 18:43:02 +08:00
parent 616fdabd8d
commit 2beb80206a

View file

@ -243,7 +243,8 @@ If STRICT-P, return nil if no project was found, otherwise return
(force-mode-line-update)) (force-mode-line-update))
(add-hook 'window-configuration-change-hook #'doom-modeline-set-selected-window) (add-hook 'window-configuration-change-hook #'doom-modeline-set-selected-window)
(add-hook 'switch-window-finish-hook #'doom-modeline-set-selected-window) (advice-add #'handle-switch-frame :after #'doom-modeline-set-selected-window)
(advice-add #'select-window :after #'doom-modeline-set-selected-window)
(with-no-warnings (with-no-warnings
(if (not (boundp 'after-focus-change-function)) (if (not (boundp 'after-focus-change-function))
(progn (progn