diff options
author | Tony Crisci <tony@dubstepdish.com> | 2018-03-30 15:47:53 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-30 15:47:53 -0400 |
commit | 7eca02301ba309fa909ba9b12cb335f8f944f1ee (patch) | |
tree | 8616074124e558fb6787be9cb3336d61663d9a86 /sway/tree/view.c | |
parent | 1c50d79e1940d9dce6217d0ca19611a19709120a (diff) | |
parent | 88f08a42f30c6d79adbc9c1d5d897113fcd3a6f4 (diff) | |
download | sway-7eca02301ba309fa909ba9b12cb335f8f944f1ee.tar.xz |
Merge pull request #1662 from swaywm/workspace-delete-fixes
Fix workspace deletion edge cases
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 @@ #include "sway/tree/container.h" #include "sway/tree/layout.h" #include "sway/tree/view.h" +#include "log.h" const char *view_get_title(struct sway_view *view) { if (view->iface.get_prop) { @@ -94,3 +95,13 @@ void view_update_outputs(struct sway_view *view, const struct wlr_box *before) { } } } + +struct sway_container *container_view_destroy(struct sway_container *view) { + if (!view) { + return NULL; + } + wlr_log(L_DEBUG, "Destroying view '%s'", view->name); + struct sway_container *parent = container_destroy(view); + arrange_windows(parent, -1, -1); + return parent; +} |