aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/container.c
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-06-05 17:56:32 -0400
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-06-06 20:11:24 -0400
commita1b5b93d299bfe129f2b3409a7f642049fcce1d6 (patch)
tree4d87f5ab8f0f18ada1fc12a4eb4ba3b5d0350527 /sway/tree/container.c
parentMerge pull request #2116 from RedSoxFan/fix-2113 (diff)
downloadsway-a1b5b93d299bfe129f2b3409a7f642049fcce1d6.tar.gz
sway-a1b5b93d299bfe129f2b3409a7f642049fcce1d6.tar.zst
sway-a1b5b93d299bfe129f2b3409a7f642049fcce1d6.zip
Store sway_outputs so that they can be reenabled
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r--sway/tree/container.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index d0d26631..af965857 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -255,7 +255,6 @@ static struct sway_container *container_output_destroy(
255 } 255 }
256 } 256 }
257 257
258 wl_list_remove(&output->sway_output->destroy.link);
259 wl_list_remove(&output->sway_output->mode.link); 258 wl_list_remove(&output->sway_output->mode.link);
260 wl_list_remove(&output->sway_output->transform.link); 259 wl_list_remove(&output->sway_output->transform.link);
261 wl_list_remove(&output->sway_output->scale.link); 260 wl_list_remove(&output->sway_output->scale.link);
@@ -265,6 +264,7 @@ static struct sway_container *container_output_destroy(
265 264
266 // clear the wlr_output reference to this container 265 // clear the wlr_output reference to this container
267 output->sway_output->wlr_output->data = NULL; 266 output->sway_output->wlr_output->data = NULL;
267 output->sway_output->swayc = NULL;
268 268
269 wlr_log(L_DEBUG, "OUTPUT: Destroying output '%s'", output->name); 269 wlr_log(L_DEBUG, "OUTPUT: Destroying output '%s'", output->name);
270 _container_destroy(output); 270 _container_destroy(output);