diff options
-rw-r--r-- | sway/desktop/output.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 03868b73..367be2d0 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c | |||
@@ -742,6 +742,10 @@ static void damage_handle_destroy(struct wl_listener *listener, void *data) { | |||
742 | return; | 742 | return; |
743 | } | 743 | } |
744 | output_disable(output); | 744 | output_disable(output); |
745 | |||
746 | wl_list_remove(&output->damage_destroy.link); | ||
747 | wl_list_remove(&output->damage_frame.link); | ||
748 | |||
745 | transaction_commit_dirty(); | 749 | transaction_commit_dirty(); |
746 | } | 750 | } |
747 | 751 | ||
@@ -785,8 +789,6 @@ static void handle_destroy(struct wl_listener *listener, void *data) { | |||
785 | wl_list_remove(&output->transform.link); | 789 | wl_list_remove(&output->transform.link); |
786 | wl_list_remove(&output->scale.link); | 790 | wl_list_remove(&output->scale.link); |
787 | wl_list_remove(&output->present.link); | 791 | wl_list_remove(&output->present.link); |
788 | wl_list_remove(&output->damage_destroy.link); | ||
789 | wl_list_remove(&output->damage_frame.link); | ||
790 | 792 | ||
791 | transaction_commit_dirty(); | 793 | transaction_commit_dirty(); |
792 | 794 | ||