mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-05 21:15:59 +01:00
types/output: emit destroy event before destroying global
This commit is contained in:
parent
e8b187cc92
commit
5d639394f3
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue