mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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
This commit is contained in:
@ -137,7 +137,9 @@ Otherwise return t on success, nil otherwise."
|
|||||||
(let ((persp (persp-add-new name))
|
(let ((persp (persp-add-new name))
|
||||||
(+popup--inhibit-transient t))
|
(+popup--inhibit-transient t))
|
||||||
(save-window-excursion
|
(save-window-excursion
|
||||||
(delete-other-windows)
|
(let ((ignore-window-parameters t)
|
||||||
|
(+popup--inhibit-transient t))
|
||||||
|
(delete-other-windows))
|
||||||
(switch-to-buffer (doom-fallback-buffer))
|
(switch-to-buffer (doom-fallback-buffer))
|
||||||
(setf (persp-window-conf persp)
|
(setf (persp-window-conf persp)
|
||||||
(funcall persp-window-state-get-function (selected-frame))))
|
(funcall persp-window-state-get-function (selected-frame))))
|
||||||
|
Reference in New Issue
Block a user