output: Nuke wlr_output->events.present

This commit is contained in:
Alexander Orzechowski 2023-10-03 05:41:41 -04:00
parent 20050bddbc
commit 544e678be0
9 changed files with 12 additions and 52 deletions

View file

@ -1718,14 +1718,12 @@ static void handle_page_flip(int fd, unsigned seq,
/* The DRM backend guarantees that the presentation event will be for
* the last submitted frame. */
.output = &conn->output,
.commit_seq = conn->output.commit_seq,
.presented = drm->session->active,
.when = &present_time,
.seq = seq,
.refresh = mhz_to_nsec(conn->output.refresh),
.flags = present_flags,
};
wlr_output_send_present(&conn->output, &present_event);
wl_signal_emit_mutable(&conn->commit.events.present, &present_event);
if (drm->session->active) {