Activate the mode-line upon changing workspace in EXWM.

Fix #358.
This commit is contained in:
Vincent Zhang 2020-08-19 09:17:34 +08:00
parent 0384ce08ce
commit ffbaaee832

View file

@ -814,6 +814,7 @@ then this function does nothing."
(add-hook 'buffer-list-update-hook #'doom-modeline-set-selected-window) (add-hook 'buffer-list-update-hook #'doom-modeline-set-selected-window)
(add-hook 'after-make-frame-functions #'doom-modeline-set-selected-window) (add-hook 'after-make-frame-functions #'doom-modeline-set-selected-window)
(add-hook 'delete-frame-functions #'doom-modeline-set-selected-window) (add-hook 'delete-frame-functions #'doom-modeline-set-selected-window)
(add-hook 'exwm-workspace-switch-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)
(with-no-warnings (with-no-warnings
(if (boundp 'after-focus-change-function) (if (boundp 'after-focus-change-function)