output: expose output_apply_state() to header

- need a way to apply the work of commit without side-effects
- related to 8f67446cc7 and f042de3f51
This commit is contained in:
EBADBEEF 2023-08-23 15:02:02 -07:00
parent 7431d840d0
commit a1ddc25b45
2 changed files with 2 additions and 1 deletions

View file

@ -210,7 +210,7 @@ void wlr_output_set_description(struct wlr_output *output, const char *desc) {
wl_signal_emit_mutable(&output->events.description, output);
}
static void output_apply_state(struct wlr_output *output,
void output_apply_state(struct wlr_output *output,
const struct wlr_output_state *state) {
if (state->committed & WLR_OUTPUT_STATE_RENDER_FORMAT) {
output->render_format = state->render_format;