diff options
author | Simon Ser <contact@emersion.fr> | 2021-04-06 15:42:14 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-04-06 20:35:15 +0200 |
commit | 5088e25eaf8aca2934acd315b88524b6c7937188 (patch) | |
tree | c0b08111081f7ba7d991e5088d753aca8a86e8a6 /backend | |
parent | 55aaeb25c57630add817524b579c3f05a805c09d (diff) |
backend/drm: don't set NONBLOCK with TEST_ONLY
The kernel ignores NONBLOCK when TEST_ONLY is set. Let's just not
set it, to make it clear it's unused.
Diffstat (limited to 'backend')
-rw-r--r-- | backend/drm/atomic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/drm/atomic.c b/backend/drm/atomic.c index 75c79525..310138f0 100644 --- a/backend/drm/atomic.c +++ b/backend/drm/atomic.c @@ -202,7 +202,7 @@ static bool atomic_crtc_commit(struct wlr_drm_backend *drm, if (crtc->pending_modeset) { flags |= DRM_MODE_ATOMIC_ALLOW_MODESET; - } else { + } else if (!(flags & DRM_MODE_ATOMIC_TEST_ONLY)) { flags |= DRM_MODE_ATOMIC_NONBLOCK; } |