diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index 967a34b..bafab7a 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -1247,8 +1247,7 @@ Returns \"\" to not break --no-window-system." (doom-modeline-refresh-bars val doom-modeline-height))))) (add-hook 'after-setting-font-hook #'doom-modeline-refresh-bars) -(advice-add #'set-face-attribute :after #'(lambda (&rest _) - (doom-modeline-refresh-bars))) +(add-hook 'window-configuration-change-hook #'doom-modeline-refresh-bars) ;;