Update mode-line forcely after making a new frame.

This commit is contained in:
Vincent Zhang 2018-10-28 02:51:18 +08:00
parent 70f896fffb
commit 6e30cfad01

View file

@ -390,6 +390,7 @@ active.")
(setq doom-modeline-current-window nil) (setq doom-modeline-current-window nil)
(force-mode-line-update)) (force-mode-line-update))
(add-hook 'after-make-frame-functions (lambda () (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)
(advice-add #'handle-switch-frame :after #'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 #'select-window :after #'doom-modeline-set-selected-window)