backend/drm: report !presented if session is inactive

This commit is contained in:
Rose Hudson 2023-08-10 20:38:17 +01:00 committed by Simon Ser
parent f7afef0b1f
commit fc81d06add

View File

@ -1702,7 +1702,7 @@ static void handle_page_flip(int fd, unsigned seq,
/* The DRM backend guarantees that the presentation event will be for
* the last submitted frame. */
.commit_seq = conn->output.commit_seq,
.presented = true,
.presented = drm->session->active,
.when = &present_time,
.seq = seq,
.refresh = mhz_to_nsec(conn->output.refresh),