mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-18 06:47:31 -04:00
output: destroy global after destroy events
This lets the compositor do stuff with the global right before destruction.
This commit is contained in:
parent
e93ecc669c
commit
7a89b07459
1 changed files with 2 additions and 1 deletions
|
|
@ -386,12 +386,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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue