diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-06-26 20:18:57 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-06-26 20:18:57 +1000 |
commit | a7b3f29292cad029f010aa8b5fafb56b08ba4ed7 (patch) | |
tree | 7f70df64d1ec140d5d1bf744dd4a2c087e0564e7 /sway/tree | |
parent | 93696b78ecbc31ec34be97ec26836efb74d359f0 (diff) |
Remove incorrect assertion and supporting code
Children can exist when destroying a container, such as when destroying
the last output. Sway is not terminating in that case.
Diffstat (limited to 'sway/tree')
-rw-r--r-- | sway/tree/container.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c index 0c860405..2b9eb636 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c @@ -319,15 +319,6 @@ struct sway_container *container_destroy_noreaping(struct sway_container *con) { } } - // At this point the container being destroyed shouldn't have any children - // unless sway is terminating. - if (!server.terminating) { - if (!sway_assert(!con->children || con->children->length == 0, - "Didn't expect to see children here")) { - return NULL; - } - } - con->destroying = true; list_add(server.destroying_containers, con); |