feature/workspace: fix new frames with unreal buffers + no buffer predicate
This commit is contained in:
parent
245ef02597
commit
b6ee578cda
1 changed files with 5 additions and 1 deletions
|
@ -473,7 +473,11 @@ created."
|
||||||
(if (not (persp-frame-list-without-daemon))
|
(if (not (persp-frame-list-without-daemon))
|
||||||
(+workspace-switch +workspaces-main t)
|
(+workspace-switch +workspaces-main t)
|
||||||
(+workspace-switch (format "#%s" (+workspace--generate-id)) 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))))
|
(run-at-time 0.1 nil #'+workspace/display))))
|
||||||
|
|
||||||
(defvar +workspaces--project-dir nil)
|
(defvar +workspaces--project-dir nil)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue