aboutsummaryrefslogtreecommitdiff
path: root/sway/tree/workspace.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/tree/workspace.c')
-rw-r--r--sway/tree/workspace.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sway/tree/workspace.c b/sway/tree/workspace.c
index e89c0849..8b3eb2ad 100644
--- a/sway/tree/workspace.c
+++ b/sway/tree/workspace.c
@@ -158,13 +158,7 @@ void workspace_begin_destroy(struct sway_workspace *workspace) {
if (workspace->output) {
workspace_detach(workspace);
- } else {
- int index = list_find(root->saved_workspaces, workspace);
- if (index != -1) {
- list_del(root->saved_workspaces, index);
- }
}
-
workspace->node.destroying = true;
node_set_dirty(&workspace->node);
}