aboutsummaryrefslogtreecommitdiff
path: root/backend/drm
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-11-10 12:56:23 +0100
committerSimon Ser <contact@emersion.fr>2022-11-11 14:46:51 +0000
commit84e727daae6788f9eaf2a2f6e920ce7d40f66aa8 (patch)
treec594b7ffe17985705a25c708f51e29220a5f663f /backend/drm
parenta707b7b1017e5dfb92c237bff3d66b6a3963ab8d (diff)
backend/drm: request page-flip event on modeset
The old drm_connector_set_mode() function did that by calling drm_crtc_page_flip(). We lost this in the refactoring. Fixes: f216e979836a ("backend/drm: drop drm_connector_set_mode()")
Diffstat (limited to 'backend/drm')
-rw-r--r--backend/drm/drm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index a85373ad..04994c68 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -577,6 +577,9 @@ bool drm_connector_commit_state(struct wlr_drm_connector *conn,
return false;
}
}
+ if (pending.modeset) {
+ flags |= DRM_MODE_PAGE_FLIP_EVENT;
+ }
if (!drm_crtc_commit(conn, &pending, flags, false)) {
return false;