aboutsummaryrefslogtreecommitdiff
path: root/sway/container.c
diff options
context:
space:
mode:
authorMikkel Oscar Lyderik <mikkeloscar@gmail.com>2015-12-18 18:02:39 +0100
committerMikkel Oscar Lyderik <mikkeloscar@gmail.com>2015-12-18 18:27:54 +0100
commit90ff36cab8657272b6727af69bab49dba463d6ba (patch)
tree683793bfcd1cd3a5a53fa27883abde31d71ac09c /sway/container.c
parentede27eabc53dc926aa1932c2a58c06def1000f86 (diff)
Terminate children when freeing output container
Diffstat (limited to 'sway/container.c')
-rw-r--r--sway/container.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/container.c b/sway/container.c
index 395eb04d..b85d2114 100644
--- a/sway/container.c
+++ b/sway/container.c
@@ -61,8 +61,12 @@ static void free_swayc(swayc_t *cont) {
free(cont->app_id);
}
if (cont->bar_pids) {
+ terminate_swaybars(cont->bar_pids);
free_flat_list(cont->bar_pids);
}
+ if (cont->bg_pid != 0) {
+ terminate_swaybg(cont->bg_pid);
+ }
free(cont);
}