From 11327006cf10a6edaa535bdb94195a55fa2698f8 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Sun, 28 Oct 2018 03:16:31 +0800 Subject: [PATCH] Update mode-line after new or delete a frame. --- doom-modeline.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doom-modeline.el b/doom-modeline.el index dc62a64..0a44477 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -393,6 +393,8 @@ active.") (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-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)) (add-hook 'focus-in-hook #'doom-modeline-set-selected-window)