output: disallow NULL event for wlr_output_send_present()

This commit is contained in:
Kirill Primak 2021-10-14 22:32:40 +03:00 committed by Simon Ser
parent 1b65a80e9d
commit 1089b7b8d6
3 changed files with 13 additions and 9 deletions

View file

@ -64,7 +64,10 @@ static bool output_commit(struct wlr_output *wlr_output) {
}
if (wlr_output->pending.committed & WLR_OUTPUT_STATE_BUFFER) {
wlr_output_send_present(wlr_output, NULL);
struct wlr_output_event_present present_event = {
.commit_seq = wlr_output->commit_seq + 1,
};
wlr_output_send_present(wlr_output, &present_event);
}
return true;