diff options
author | Simon Zeni <simon@bl4ckb0ne.ca> | 2023-11-30 13:29:18 -0500 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2023-11-30 13:29:18 -0500 |
commit | 5d639394f3e83b01596dcd166a44a9a1a2583350 (patch) | |
tree | 3e843c56dbab768e599435f2995a0bea75098ba9 | |
parent | e8b187cc92b9b039dcbb6715665ee8ba5d065c6b (diff) |
types/output: emit destroy event before destroying global
-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 |