From 2992b72d61933568476e2bf4baf573e714f9ed40 Mon Sep 17 00:00:00 2001
From: Tony Crisci <tony@dubstepdish.com>
Date: Mon, 2 Apr 2018 22:37:21 -0400
Subject: change reap container approach

---
 include/sway/tree/container.h | 4 ++--
 include/sway/tree/layout.h    | 4 +++-
 2 files changed, 5 insertions(+), 3 deletions(-)

(limited to 'include/sway')

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(
 		struct sway_container *sibling, struct sway_view *sway_view);
 
 // TODO don't return the parent on destroy
-struct sway_container *container_destroy(struct sway_container *container);
+void container_destroy(struct sway_container *container);
 
 struct sway_container *container_workspace_destroy(struct sway_container *container);
 struct sway_container *container_output_destroy(struct sway_container *container);
-struct sway_container *container_view_destroy(struct sway_container *container);
+void container_view_destroy(struct sway_container *container);
 
 struct sway_container *container_close(struct sway_container *container);
 
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,
 struct sway_container *container_remove_child(struct sway_container *child);
 
 // TODO PRIVATE in tree.h
-struct sway_container *container_reap_empty(struct sway_container *container);
+
+struct sway_container *container_replace_child(struct sway_container *child,
+		struct sway_container *new_child);
 
 // TODO move to tree.h
 void container_move_to(struct sway_container* container,
-- 
cgit v1.2.3