aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-11-15 10:55:38 +0100
committerSimon Ser <contact@emersion.fr>2022-11-15 14:14:18 +0000
commitf863b93c05a73097ccddce1ed066f3f11bfb1c3e (patch)
tree7c2b5f2b5fb1b85e353706240994d500855e15ff /backend
parent258bf9be1e44d8a2fb953d727ff4ffcf9ebd6503 (diff)
backend/drm: only request page-flip if active
It doesn't make sense to request a page-flip for a disabled output. Fixes: 84e727daae67 ("backend/drm: request page-flip event on modeset") Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3528
Diffstat (limited to 'backend')
-rw-r--r--backend/drm/drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index a3daf23f..a7ff585e 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -577,7 +577,7 @@ bool drm_connector_commit_state(struct wlr_drm_connector *conn,
return false;
}
}
- if (pending.modeset) {
+ if (pending.modeset && pending.active) {
flags |= DRM_MODE_PAGE_FLIP_EVENT;
}