diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-06 09:26:28 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-04-06 09:26:49 -0400 |
commit | b08f7e5183d25ce0d4ae89796893a6d25d4a1b93 (patch) | |
tree | 70b9e3f290fcbdb203a0d2c8911b4da83d326085 /sway/tree/container.c | |
parent | Merge pull request #1754 from emersion/fix-output-enter (diff) | |
download | sway-b08f7e5183d25ce0d4ae89796893a6d25d4a1b93.tar.gz sway-b08f7e5183d25ce0d4ae89796893a6d25d4a1b93.tar.zst sway-b08f7e5183d25ce0d4ae89796893a6d25d4a1b93.zip |
Fix deletion of still-visible workspaces on unfocus
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r-- | sway/tree/container.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c index 41321dc8..ab8363bc 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c | |||
@@ -216,6 +216,7 @@ static bool container_reap_empty(struct sway_container *con) { | |||
216 | break; | 216 | break; |
217 | case C_WORKSPACE: | 217 | case C_WORKSPACE: |
218 | if (!workspace_is_visible(con) && con->children->length == 0) { | 218 | if (!workspace_is_visible(con) && con->children->length == 0) { |
219 | wlr_log(L_DEBUG, "Destroying workspace via reaper"); | ||
219 | container_workspace_destroy(con); | 220 | container_workspace_destroy(con); |
220 | return true; | 221 | return true; |
221 | } | 222 | } |