From 4e0802ee01a3d08af386919eb7e2a9fd34bab1b4 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 21 Apr 2019 00:03:44 -0400 Subject: [PATCH] Fix windows surviving creation of new workspaces Particularly windows that resist `delete-window`, like treemacs, when a new workspace is switched to. Relevant to #1348 --- modules/feature/workspaces/autoload/workspaces.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/feature/workspaces/autoload/workspaces.el b/modules/feature/workspaces/autoload/workspaces.el index 6dea52f23..61b602f36 100644 --- a/modules/feature/workspaces/autoload/workspaces.el +++ b/modules/feature/workspaces/autoload/workspaces.el @@ -137,7 +137,9 @@ Otherwise return t on success, nil otherwise." (let ((persp (persp-add-new name)) (+popup--inhibit-transient t)) (save-window-excursion - (delete-other-windows) + (let ((ignore-window-parameters t) + (+popup--inhibit-transient t)) + (delete-other-windows)) (switch-to-buffer (doom-fallback-buffer)) (setf (persp-window-conf persp) (funcall persp-window-state-get-function (selected-frame))))