core: Add resize hook later in startup
Fixes hang while resizing on startup with initial-frame-alist. Fixes #6986
This commit is contained in:
parent
e207038208
commit
bc5eb62e53
|
@ -909,7 +909,10 @@ already exist, and switch to it."
|
|||
(switch-to-buffer spacemacs-buffer-name)
|
||||
(spacemacs//redisplay)))))
|
||||
|
||||
(add-hook 'window-configuration-change-hook 'spacemacs-buffer//resize-on-hook)
|
||||
(add-hook 'window-setup-hook
|
||||
(lambda ()
|
||||
(add-hook 'window-configuration-change-hook 'spacemacs-buffer//resize-on-hook)
|
||||
(spacemacs-buffer//resize-on-hook)))
|
||||
|
||||
(defun spacemacs-buffer//resize-on-hook ()
|
||||
(let ((space-win (get-buffer-window spacemacs-buffer-name))
|
||||
|
|
Loading…
Reference in New Issue