From fc81d06addbc72012ca72e4ca9a462f22629a451 Mon Sep 17 00:00:00 2001 From: Rose Hudson Date: Thu, 10 Aug 2023 20:38:17 +0100 Subject: backend/drm: report !presented if session is inactive --- backend/drm/drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend/drm/drm.c') diff --git a/backend/drm/drm.c b/backend/drm/drm.c index 0765fd14..85240448 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -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), -- cgit v1.2.3