diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-05-01 22:41:20 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-05-01 22:41:20 +1000 |
commit | 4fa5e2d9db2879b665d6447692017b82ff78e186 (patch) | |
tree | 19a4f66de6aeb2842a269c5e0103cb68b3d1f4c7 /sway/tree/view.c | |
parent | 6ef14e99eec0d741104be3a1483b7e92de870c96 (diff) | |
parent | 7f574c538db6bfc42166181b25ad5ef0831be63f (diff) |
Merge branch 'borders' of github:RyanDwyer/sway into borders
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r-- | sway/tree/view.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c index 80949c89..05a9b277 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c @@ -346,7 +346,11 @@ void view_unmap(struct sway_view *view) { view->swayc = NULL; view->surface = NULL; - arrange_children_of(parent); + if (parent->type == C_OUTPUT) { + arrange_output(parent); + } else { + arrange_children_of(parent); + } } void view_update_position(struct sway_view *view, double ox, double oy) { |