output: add presented flag to presentation event

This commit is contained in:
Kirill Primak 2021-10-14 22:40:12 +03:00 committed by Simon Ser
parent 1089b7b8d6
commit 2af8cc769a
6 changed files with 11 additions and 2 deletions

View file

@ -690,9 +690,11 @@ void handle_x11_present_event(struct wlr_x11_backend *x11,
flags |= WLR_OUTPUT_PRESENT_ZERO_COPY;
}
bool presented = complete_notify->mode != XCB_PRESENT_COMPLETE_MODE_SKIP;
struct wlr_output_event_present present_event = {
.output = &output->wlr_output,
.commit_seq = complete_notify->serial,
.presented = presented,
.when = &t,
.seq = complete_notify->msc,
.flags = flags,