feature/workspace: improve daemon/frame compatibility

This update fixes issues with frame-local perspectives, and ensures that
a workspace is always selected in a daemon session's frames.
This commit is contained in:
Henrik Lissner 2018-01-28 20:32:08 -05:00
parent 38c0a85155
commit 22f4404210
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 30 additions and 22 deletions

View file

@ -468,8 +468,10 @@ created."
"Create a blank, new perspective and associate it with FRAME."
(when persp-mode
(with-selected-frame frame
(+workspace/new)
(set-frame-parameter frame 'workspace (+workspace-current-name))
(if (not (persp-frame-list-without-daemon))
(+workspace-switch +workspaces-main t)
(+workspace/new)
(set-frame-parameter frame 'workspace (+workspace-current-name)))
(+workspace/display))))
(defvar +workspaces--project-dir nil)