aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/view.c
diff options
context:
space:
mode:
authorLibravatar Tony Crisci <tony@dubstepdish.com>2018-04-03 19:23:59 -0400
committerLibravatar Tony Crisci <tony@dubstepdish.com>2018-04-03 19:23:59 -0400
commit481a8275c178f81bb2d9927c5047e959fdbc383a (patch)
tree4a2f1f85be06a17f2885a53676bd446d8fd8c502 /sway/tree/view.c
parentfix old todos (diff)
downloadsway-481a8275c178f81bb2d9927c5047e959fdbc383a.tar.gz
sway-481a8275c178f81bb2d9927c5047e959fdbc383a.tar.zst
sway-481a8275c178f81bb2d9927c5047e959fdbc383a.zip
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) {
149 149
150 view_damage_whole(view); 150 view_damage_whole(view);
151 151
152 container_destroy(view->swayc); 152 struct sway_container *parent = container_destroy(view->swayc);
153 153
154 view->swayc = NULL; 154 view->swayc = NULL;
155 view->surface = NULL; 155 view->surface = NULL;
156 156
157 arrange_windows(&root_container, -1, -1); 157 arrange_windows(parent, -1, -1);
158} 158}
159 159
160void view_update_position(struct sway_view *view, double ox, double oy) { 160void view_update_position(struct sway_view *view, double ox, double oy) {