unify container destroy functions

This commit is contained in:
Tony Crisci 2018-04-03 12:34:01 -04:00
parent b4c5f79725
commit 09d448ea2d
5 changed files with 40 additions and 41 deletions

View file

@ -127,7 +127,7 @@ void apply_output_config(struct output_config *oc, struct sway_container *output
if (oc && oc->enabled == 0) {
wlr_output_layout_remove(root_container.sway_root->output_layout,
wlr_output);
container_output_destroy(output);
container_destroy(output);
return;
}