feature/workspace: fix new frames with unreal buffers + no buffer predicate

This commit is contained in:
Henrik Lissner 2018-02-04 02:21:35 -05:00
parent 245ef02597
commit b6ee578cda
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -473,7 +473,11 @@ created."
(if (not (persp-frame-list-without-daemon))
(+workspace-switch +workspaces-main t)
(+workspace-switch (format "#%s" (+workspace--generate-id)) t)
(set-frame-parameter frame 'workspace (+workspace-current-name)))
(unless (doom-real-buffer-p)
(switch-to-buffer (doom-fallback-buffer)))
(set-frame-parameter frame 'workspace (+workspace-current-name))
;; ensure every buffer has a buffer-predicate
(persp-set-frame-buffer-predicate frame))
(run-at-time 0.1 nil #'+workspace/display))))
(defvar +workspaces--project-dir nil)