summaryrefslogtreecommitdiffstats
path: root/sway/tree/root.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/tree/root.c')
-rw-r--r--sway/tree/root.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/tree/root.c b/sway/tree/root.c
index e1624863..e5df8dd1 100644
--- a/sway/tree/root.c
+++ b/sway/tree/root.c
@@ -87,6 +87,9 @@ void root_scratchpad_remove_container(struct sway_container *con) {
87 if (!sway_assert(con->scratchpad, "Container is not in scratchpad")) { 87 if (!sway_assert(con->scratchpad, "Container is not in scratchpad")) {
88 return; 88 return;
89 } 89 }
90 if (!con->workspace) {
91 root_scratchpad_show(con);
92 }
90 con->scratchpad = false; 93 con->scratchpad = false;
91 int index = list_find(root->scratchpad, con); 94 int index = list_find(root->scratchpad, con);
92 if (index != -1) { 95 if (index != -1) {