diff options
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r-- | sway/tree/view.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c index d5325c31..480ff693 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c | |||
@@ -3,6 +3,7 @@ | |||
3 | #include "sway/tree/container.h" | 3 | #include "sway/tree/container.h" |
4 | #include "sway/tree/layout.h" | 4 | #include "sway/tree/layout.h" |
5 | #include "sway/tree/view.h" | 5 | #include "sway/tree/view.h" |
6 | #include "log.h" | ||
6 | 7 | ||
7 | const char *view_get_title(struct sway_view *view) { | 8 | const char *view_get_title(struct sway_view *view) { |
8 | if (view->iface.get_prop) { | 9 | if (view->iface.get_prop) { |
@@ -94,3 +95,13 @@ void view_update_outputs(struct sway_view *view, const struct wlr_box *before) { | |||
94 | } | 95 | } |
95 | } | 96 | } |
96 | } | 97 | } |
98 | |||
99 | struct sway_container *container_view_destroy(struct sway_container *view) { | ||
100 | if (!view) { | ||
101 | return NULL; | ||
102 | } | ||
103 | wlr_log(L_DEBUG, "Destroying view '%s'", view->name); | ||
104 | struct sway_container *parent = container_destroy(view); | ||
105 | arrange_windows(parent, -1, -1); | ||
106 | return parent; | ||
107 | } | ||