aboutsummaryrefslogtreecommitdiff
path: root/sway/tree/view.c
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2018-04-03 19:23:59 -0400
committerTony Crisci <tony@dubstepdish.com>2018-04-03 19:23:59 -0400
commit481a8275c178f81bb2d9927c5047e959fdbc383a (patch)
tree4a2f1f85be06a17f2885a53676bd446d8fd8c502 /sway/tree/view.c
parenteca4468c2cacd87677f7f5831d8a74f8d811d318 (diff)
downloadsway-481a8275c178f81bb2d9927c5047e959fdbc383a.tar.xz
address feedback
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r--sway/tree/view.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c
index c06924f5..aa010a40 100644
--- a/sway/tree/view.c
+++ b/sway/tree/view.c
@@ -149,12 +149,12 @@ void view_unmap(struct sway_view *view) {
view_damage_whole(view);
- container_destroy(view->swayc);
+ struct sway_container *parent = container_destroy(view->swayc);
view->swayc = NULL;
view->surface = NULL;
- arrange_windows(&root_container, -1, -1);
+ arrange_windows(parent, -1, -1);
}
void view_update_position(struct sway_view *view, double ox, double oy) {