diff options
Diffstat (limited to 'sway/container.c')
-rw-r--r-- | sway/container.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sway/container.c b/sway/container.c index 36056ff7..b85d2114 100644 --- a/sway/container.c +++ b/sway/container.c @@ -60,6 +60,13 @@ static void free_swayc(swayc_t *cont) { if (cont->app_id) { 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); } @@ -109,6 +116,8 @@ swayc_t *new_output(wlc_handle handle) { output->width = size->w; output->height = size->h; output->unmanaged = create_list(); + output->bar_pids = create_list(); + output->bg_pid = 0; apply_output_config(oc, output); add_child(&root_container, output); |