diff options
-rw-r--r-- | types/output/output.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/types/output/output.c b/types/output/output.c index cc8b5e49..a97eae77 100644 --- a/types/output/output.c +++ b/types/output/output.c @@ -439,11 +439,12 @@ void wlr_output_destroy(struct wlr_output *output) { return; } + wl_signal_emit_mutable(&output->events.destroy, output); + wlr_output_destroy_global(output); wl_list_remove(&output->display_destroy.link); - wl_signal_emit_mutable(&output->events.destroy, output); wlr_addon_set_finish(&output->addons); // The backend is responsible for free-ing the list of modes |