output: introduce wlr_output_finish()

This commit is contained in:
Kirill Primak 2024-11-22 23:21:08 +03:00 committed by Isaac Freund
parent 7963ba6a0d
commit d5d650f9f6
6 changed files with 22 additions and 7 deletions

View file

@ -108,6 +108,10 @@ struct wlr_output_impl {
void wlr_output_init(struct wlr_output *output, struct wlr_backend *backend,
const struct wlr_output_impl *impl, struct wl_event_loop *event_loop,
const struct wlr_output_state *state);
/**
* Emit the destroy event and clean up common output state.
*/
void wlr_output_finish(struct wlr_output *output);
/**
* Notify compositors that they need to submit a new frame in order to apply
* output changes.