From 2301349ad59751640ed9e59dd22edeafaf09da39 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Thu, 17 Jan 2019 20:16:23 +1000 Subject: Use noop output when there's no outputs connected Instead of having NULL workspace->output pointers, use a noop output. This should be safer. --- sway/tree/workspace.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'sway/tree/workspace.c') 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); } -- cgit v1.2.3