diff options
-rw-r--r-- | exwm-systemtray.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/exwm-systemtray.el b/exwm-systemtray.el index 82a2ccdbf24d..48bd8eacb10a 100644 --- a/exwm-systemtray.el +++ b/exwm-systemtray.el @@ -472,7 +472,10 @@ You shall use the default value if using auto-hide minibuffer.") (add-hook 'exwm-workspace--update-workareas-hook #'exwm-systemtray--on-struts-update) (when (boundp 'exwm-randr-refresh-hook) - (add-hook 'exwm-randr-refresh-hook #'exwm-systemtray--on-randr-refresh))) + (add-hook 'exwm-randr-refresh-hook #'exwm-systemtray--on-randr-refresh)) + ;; The struts can be updated already. + (when exwm-workspace--workareas + (exwm-systemtray--on-struts-update))) (defun exwm-systemtray--exit () "Exit the systemtray module." |