Ensure non-dedicated window is active on workspace creation

Otherwise, workspaces are left in a broken state where they only contain
dedicated/side-windows, which Emacs can't handle well.

Indirectly fixes #1492
This commit is contained in:
Henrik Lissner 2019-06-14 12:34:23 +02:00
parent 7ce4a25e1e
commit 80958c0c17
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -136,7 +136,7 @@ Otherwise return t on success, nil otherwise."
(save-window-excursion
(let ((ignore-window-parameters t)
(+popup--inhibit-transient t))
(delete-other-windows))
(persp-delete-other-windows))
(switch-to-buffer (doom-fallback-buffer))
(setf (persp-window-conf persp)
(funcall persp-window-state-get-function (selected-frame))))