Merge branch 'output-destroy-surface-leave' into 'master'

wlr_compositor: Send leave event when output is destroyed

Closes #3559

See merge request wlroots/wlroots!3960
This commit is contained in:
Alexander Orzechowski 2023-11-22 20:51:08 +00:00
commit 519202b0b1
2 changed files with 17 additions and 10 deletions

View file

@ -451,12 +451,13 @@ void wlr_output_destroy(struct wlr_output *output) {
}
wl_list_remove(&output->display_destroy.link);
wlr_output_destroy_global(output);
output_clear_back_buffer(output);
wl_signal_emit_mutable(&output->events.destroy, output);
wlr_addon_set_finish(&output->addons);
wlr_output_destroy_global(output);
// The backend is responsible for free-ing the list of modes
struct wlr_output_cursor *cursor, *tmp_cursor;