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: f216e97983 ("backend/drm: drop drm_connector_set_mode()")
This commit is contained in:
Simon Ser 2022-11-10 12:56:23 +01:00
parent a707b7b101
commit 84e727daae

View file

@ -577,6 +577,9 @@ bool drm_connector_commit_state(struct wlr_drm_connector *conn,
return false; return false;
} }
} }
if (pending.modeset) {
flags |= DRM_MODE_PAGE_FLIP_EVENT;
}
if (!drm_crtc_commit(conn, &pending, flags, false)) { if (!drm_crtc_commit(conn, &pending, flags, false)) {
return false; return false;