diff options
author | Tony Crisci <tony@dubstepdish.com> | 2018-04-02 22:37:21 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2018-04-02 22:37:21 -0400 |
commit | 2992b72d61933568476e2bf4baf573e714f9ed40 (patch) | |
tree | 0682e081d94d73ef2b4b9a7f8d1646c11bb33b8e /include | |
parent | fix more close segfaults (diff) | |
download | sway-2992b72d61933568476e2bf4baf573e714f9ed40.tar.gz sway-2992b72d61933568476e2bf4baf573e714f9ed40.tar.zst sway-2992b72d61933568476e2bf4baf573e714f9ed40.zip |
change reap container approach
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/tree/container.h | 4 | ||||
-rw-r--r-- | include/sway/tree/layout.h | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h index 5d15f12b..1286316a 100644 --- a/include/sway/tree/container.h +++ b/include/sway/tree/container.h | |||
@@ -128,11 +128,11 @@ struct sway_container *container_view_create( | |||
128 | struct sway_container *sibling, struct sway_view *sway_view); | 128 | struct sway_container *sibling, struct sway_view *sway_view); |
129 | 129 | ||
130 | // TODO don't return the parent on destroy | 130 | // TODO don't return the parent on destroy |
131 | struct sway_container *container_destroy(struct sway_container *container); | 131 | void container_destroy(struct sway_container *container); |
132 | 132 | ||
133 | struct sway_container *container_workspace_destroy(struct sway_container *container); | 133 | struct sway_container *container_workspace_destroy(struct sway_container *container); |
134 | struct sway_container *container_output_destroy(struct sway_container *container); | 134 | struct sway_container *container_output_destroy(struct sway_container *container); |
135 | struct sway_container *container_view_destroy(struct sway_container *container); | 135 | void container_view_destroy(struct sway_container *container); |
136 | 136 | ||
137 | struct sway_container *container_close(struct sway_container *container); | 137 | struct sway_container *container_close(struct sway_container *container); |
138 | 138 | ||
diff --git a/include/sway/tree/layout.h b/include/sway/tree/layout.h index 8badb244..9d33d561 100644 --- a/include/sway/tree/layout.h +++ b/include/sway/tree/layout.h | |||
@@ -41,7 +41,9 @@ struct sway_container *container_add_sibling(struct sway_container *parent, | |||
41 | struct sway_container *container_remove_child(struct sway_container *child); | 41 | struct sway_container *container_remove_child(struct sway_container *child); |
42 | 42 | ||
43 | // TODO PRIVATE in tree.h | 43 | // TODO PRIVATE in tree.h |
44 | struct sway_container *container_reap_empty(struct sway_container *container); | 44 | |
45 | struct sway_container *container_replace_child(struct sway_container *child, | ||
46 | struct sway_container *new_child); | ||
45 | 47 | ||
46 | // TODO move to tree.h | 48 | // TODO move to tree.h |
47 | void container_move_to(struct sway_container* container, | 49 | void container_move_to(struct sway_container* container, |