wlr_output: Add applied state to commit event

master
Alexander Orzechowski 1 year ago committed by Simon Ser
parent 0b15b4a6ae
commit 03e240a7f2

@ -227,6 +227,7 @@ struct wlr_output_event_commit {
uint32_t committed; // bitmask of enum wlr_output_state_field
struct timespec *when;
struct wlr_buffer *buffer; // NULL if no buffer is committed
const struct wlr_output_state *state;
};
enum wlr_output_present_flag {

@ -836,6 +836,7 @@ bool wlr_output_commit_state(struct wlr_output *output,
.committed = pending.committed,
.when = &now,
.buffer = (pending.committed & WLR_OUTPUT_STATE_BUFFER) ? pending.buffer : NULL,
.state = &pending,
};
wl_signal_emit_mutable(&output->events.commit, &event);

Loading…
Cancel
Save