Revert "Update mode-line forcely after making a new frame."

This reverts commit 6e30cfad01.
This commit is contained in:
Vincent Zhang 2018-10-28 03:07:54 +08:00
parent 6e30cfad01
commit d97080620e

View file

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