diff --git a/sway/tree/root.c b/sway/tree/root.c index 55d784873..6759b6cf6 100644 --- a/sway/tree/root.c +++ b/sway/tree/root.c @@ -131,6 +131,7 @@ void root_scratchpad_show(struct sway_container *con) { // Show the container if (old_ws) { container_detach(con); + workspace_consider_destroy(old_ws); } workspace_add_floating(new_ws, con);