mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-25 16:42:26 +00:00
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:
parent
a707b7b101
commit
84e727daae
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user