From e57c0aa25a4a9061655fed9f1076c1347887a807 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Sat, 16 Feb 2019 11:58:44 +0800 Subject: [PATCH] Revert 947312d * Update advices for set-selected-window. --- doom-modeline-core.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doom-modeline-core.el b/doom-modeline-core.el index a31cf23..f272fcd 100644 --- a/doom-modeline-core.el +++ b/doom-modeline-core.el @@ -380,7 +380,8 @@ If DEFAULT is non-nil, set the default mode-line for all buffers." (add-hook 'window-configuration-change-hook #'doom-modeline-set-selected-window) (advice-add #'handle-switch-frame :after #'doom-modeline-set-selected-window) -(advice-add #'select-frame :after #'doom-modeline-set-selected-window) +(advice-add #'select-window :after #'doom-modeline-set-selected-window) +(advice-add #'make-frame :after #'doom-modeline-set-selected-window) (advice-add #'delete-frame :after #'doom-modeline-set-selected-window) (with-no-warnings (cond ((not (boundp 'after-focus-change-function))