summaryrefslogtreecommitdiffstats
path: root/sway/tree/container.c
diff options
context:
space:
mode:
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(
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);
@@ -263,8 +262,7 @@ static struct sway_container *container_output_destroy(
263 wl_list_remove(&output->sway_output->damage_destroy.link); 262 wl_list_remove(&output->sway_output->damage_destroy.link);
264 wl_list_remove(&output->sway_output->damage_frame.link); 263 wl_list_remove(&output->sway_output->damage_frame.link);
265 264
266 // clear the wlr_output reference to this container 265 output->sway_output->swayc = NULL;
267 output->sway_output->wlr_output->data = NULL;
268 266
269 wlr_log(L_DEBUG, "OUTPUT: Destroying output '%s'", output->name); 267 wlr_log(L_DEBUG, "OUTPUT: Destroying output '%s'", output->name);
270 _container_destroy(output); 268 _container_destroy(output);