diff options
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r-- | sway/desktop/output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 3d8bbff5..401d3c44 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c | |||
@@ -498,7 +498,7 @@ void output_damage_whole_container(struct sway_output *output, | |||
498 | static void damage_handle_destroy(struct wl_listener *listener, void *data) { | 498 | static void damage_handle_destroy(struct wl_listener *listener, void *data) { |
499 | struct sway_output *output = | 499 | struct sway_output *output = |
500 | wl_container_of(listener, output, damage_destroy); | 500 | wl_container_of(listener, output, damage_destroy); |
501 | container_destroy(output->swayc); | 501 | output_begin_destroy(output->swayc); |
502 | } | 502 | } |
503 | 503 | ||
504 | static void handle_destroy(struct wl_listener *listener, void *data) { | 504 | static void handle_destroy(struct wl_listener *listener, void *data) { |
@@ -506,7 +506,7 @@ static void handle_destroy(struct wl_listener *listener, void *data) { | |||
506 | wl_signal_emit(&output->events.destroy, output); | 506 | wl_signal_emit(&output->events.destroy, output); |
507 | 507 | ||
508 | if (output->swayc) { | 508 | if (output->swayc) { |
509 | container_destroy(output->swayc); | 509 | output_begin_destroy(output->swayc); |
510 | } | 510 | } |
511 | 511 | ||
512 | wl_list_remove(&output->link); | 512 | wl_list_remove(&output->link); |