mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-23 19:19:50 +00:00
Fix: set current window after switching window via click.
This commit is contained in:
parent
616fdabd8d
commit
2beb80206a
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue