diff options
Diffstat (limited to 'backend')
-rw-r--r-- | backend/drm/drm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c index 9bcafeb6..fc6834ff 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -1497,6 +1497,9 @@ static void page_flip_handler(int fd, unsigned seq, .tv_nsec = tv_usec * 1000, }; struct wlr_output_event_present present_event = { + /* The DRM backend guarantees that the presentation event will be for + * the last submitted frame. */ + .commit_seq = conn->output.commit_seq, .when = &present_time, .seq = seq, .refresh = mhz_to_nsec(conn->output.refresh), |