Fix misaligned dashboard on workspace switch #2219
Only occurs in daemon GUI frames, for some reason.
This commit is contained in:
parent
4741e322df
commit
960f403e2e
1 changed files with 4 additions and 0 deletions
|
@ -125,6 +125,10 @@ PLIST can have the following properties:
|
||||||
;; `persp-mode' integration: update `default-directory' when switching perspectives
|
;; `persp-mode' integration: update `default-directory' when switching perspectives
|
||||||
(add-hook 'persp-created-functions #'+doom-dashboard--persp-record-project-h)
|
(add-hook 'persp-created-functions #'+doom-dashboard--persp-record-project-h)
|
||||||
(add-hook 'persp-activated-functions #'+doom-dashboard--persp-detect-project-h)
|
(add-hook 'persp-activated-functions #'+doom-dashboard--persp-detect-project-h)
|
||||||
|
;; HACK Fix #2219 where, in GUI daemon frames, the dashboard loses center
|
||||||
|
;; alignment after switching (or killing) workspaces.
|
||||||
|
(when (daemonp)
|
||||||
|
(add-hook 'persp-activated-functions #'+doom-dashboard-reload-maybe-h))
|
||||||
(add-hook 'persp-before-switch-functions #'+doom-dashboard--persp-record-project-h)))
|
(add-hook 'persp-before-switch-functions #'+doom-dashboard--persp-record-project-h)))
|
||||||
|
|
||||||
(add-hook 'doom-init-ui-hook #'+doom-dashboard-init-h)
|
(add-hook 'doom-init-ui-hook #'+doom-dashboard-init-h)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue