diff options
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r-- | sway/tree/container.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c index 995da5ce..6ac59547 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c | |||
@@ -156,6 +156,9 @@ static struct sway_container *container_output_destroy( | |||
156 | wl_list_remove(&output->sway_output->damage_destroy.link); | 156 | wl_list_remove(&output->sway_output->damage_destroy.link); |
157 | wl_list_remove(&output->sway_output->damage_frame.link); | 157 | wl_list_remove(&output->sway_output->damage_frame.link); |
158 | 158 | ||
159 | // clear the wlr_output reference to this container | ||
160 | output->sway_output->wlr_output->data = NULL; | ||
161 | |||
159 | wlr_log(L_DEBUG, "OUTPUT: Destroying output '%s'", output->name); | 162 | wlr_log(L_DEBUG, "OUTPUT: Destroying output '%s'", output->name); |
160 | _container_destroy(output); | 163 | _container_destroy(output); |
161 | return &root_container; | 164 | return &root_container; |