aboutsummaryrefslogtreecommitdiff
path: root/sway/tree/container.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-06-07 19:26:55 +0100
committerGitHub <noreply@github.com>2018-06-07 19:26:55 +0100
commit2e289831ee3198f36e2c02bd4542fa4f6646a81b (patch)
tree7de104885aabb49f17739d7631ef6cd4f628e64a /sway/tree/container.c
parent22c1c4beb4baa369f883fb5360c40158513c8e10 (diff)
parente072fbc6d98784e5610aa88251a15f64e30bbcae (diff)
Merge pull request #2108 from RedSoxFan/store-outputs
Allow outputs to be re-enabled
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r--sway/tree/container.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index d0d26631..ca993c41 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -255,7 +255,6 @@ static struct sway_container *container_output_destroy(
}
}
- wl_list_remove(&output->sway_output->destroy.link);
wl_list_remove(&output->sway_output->mode.link);
wl_list_remove(&output->sway_output->transform.link);
wl_list_remove(&output->sway_output->scale.link);
@@ -263,8 +262,7 @@ static struct sway_container *container_output_destroy(
wl_list_remove(&output->sway_output->damage_destroy.link);
wl_list_remove(&output->sway_output->damage_frame.link);
- // clear the wlr_output reference to this container
- output->sway_output->wlr_output->data = NULL;
+ output->sway_output->swayc = NULL;
wlr_log(L_DEBUG, "OUTPUT: Destroying output '%s'", output->name);
_container_destroy(output);