aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-05-01 08:35:08 +0100
committerGitHub <noreply@github.com>2018-05-01 08:35:08 +0100
commitbf0603cd2d905554cc57d121b56b6708bb1d382b (patch)
tree063cd3e299a7cf6f2aeca70c9019a26d642c558f /sway
parentb84dfa794c4bc24d3338995cf89fb4864ab63e99 (diff)
parent91f97fc21a0da6022b221d1273e147e647ce5980 (diff)
Merge pull request #1876 from RyanDwyer/view-unmap-segfault
Fix segfault in view_unmap()
Diffstat (limited to 'sway')
-rw-r--r--sway/tree/view.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c
index e0aa6c0c..519c3c78 100644
--- a/sway/tree/view.c
+++ b/sway/tree/view.c
@@ -302,7 +302,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) {