mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-04 20:55:58 +01: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
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue