output: add wlr_output_event_precommit.state

This commit is contained in:
Simon Ser 2022-05-24 20:41:22 +02:00
parent c4253fef9c
commit b21c26a1c9
4 changed files with 13 additions and 6 deletions

View file

@ -703,6 +703,7 @@ bool wlr_output_commit(struct wlr_output *output) {
struct wlr_output_event_precommit pre_event = {
.output = output,
.when = &now,
.state = &output->pending,
};
wlr_signal_emit_safe(&output->events.precommit, &pre_event);