|
|
|
@ -58,7 +58,7 @@ struct sway_container *container_create(enum sway_container_type type) {
|
|
|
|
|
return c;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
struct sway_container *container_destroy(struct sway_container *cont) {
|
|
|
|
|
static struct sway_container *_container_destroy(struct sway_container *cont) {
|
|
|
|
|
if (cont == NULL) {
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
@ -89,6 +89,11 @@ struct sway_container *container_destroy(struct sway_container *cont) {
|
|
|
|
|
return parent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
struct sway_container *container_destroy(struct sway_container *cont) {
|
|
|
|
|
cont = _container_destroy(cont);
|
|
|
|
|
return container_reap_empty(cont->parent);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
struct sway_container *container_output_create(
|
|
|
|
|
struct sway_output *sway_output) {
|
|
|
|
|
struct wlr_box size;
|
|
|
|
|