mirror of
https://github.com/swaywm/sway.git
synced 2024-12-28 07:56:31 +01:00
Fix lingering workspace with scratchpad show
Showing a window in the scratchpad can move a visible scratchpad window from another workspace to the current one. If the scratchpad window was the last visible container in that workspace, the old workspace should be destroyed.
This commit is contained in:
parent
b7f0656fab
commit
f645f8efd6
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue