mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-03 09:01:40 -05:00
types/output: emit destroy event before destroying global
(cherry picked from commit 5d639394f3)
This commit is contained in:
parent
b05fef20ff
commit
6d13d1814e
1 changed files with 2 additions and 1 deletions
|
|
@ -450,11 +450,12 @@ void wlr_output_destroy(struct wlr_output *output) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wl_signal_emit_mutable(&output->events.destroy, output);
|
||||||
|
|
||||||
wl_list_remove(&output->display_destroy.link);
|
wl_list_remove(&output->display_destroy.link);
|
||||||
wlr_output_destroy_global(output);
|
wlr_output_destroy_global(output);
|
||||||
output_clear_back_buffer(output);
|
output_clear_back_buffer(output);
|
||||||
|
|
||||||
wl_signal_emit_mutable(&output->events.destroy, output);
|
|
||||||
wlr_addon_set_finish(&output->addons);
|
wlr_addon_set_finish(&output->addons);
|
||||||
|
|
||||||
// The backend is responsible for free-ing the list of modes
|
// The backend is responsible for free-ing the list of modes
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue