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.
This commit is contained in:
Ryan Dwyer 2018-06-26 20:18:57 +10:00
parent 93696b78ec
commit a7b3f29292
3 changed files with 0 additions and 12 deletions

View file

@ -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);