diff options
Diffstat (limited to 'sway/tree/workspace.c')
-rw-r--r-- | sway/tree/workspace.c | 6 |
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) { | |||
158 | 158 | ||
159 | if (workspace->output) { | 159 | if (workspace->output) { |
160 | workspace_detach(workspace); | 160 | workspace_detach(workspace); |
161 | } else { | ||
162 | int index = list_find(root->saved_workspaces, workspace); | ||
163 | if (index != -1) { | ||
164 | list_del(root->saved_workspaces, index); | ||
165 | } | ||
166 | } | 161 | } |
167 | |||
168 | workspace->node.destroying = true; | 162 | workspace->node.destroying = true; |
169 | node_set_dirty(&workspace->node); | 163 | node_set_dirty(&workspace->node); |
170 | } | 164 | } |