mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
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.
This commit is contained in:
parent
55aaeb25c5
commit
5088e25eaf
1 changed files with 1 additions and 1 deletions
|
@ -202,7 +202,7 @@ static bool atomic_crtc_commit(struct wlr_drm_backend *drm,
|
||||||
|
|
||||||
if (crtc->pending_modeset) {
|
if (crtc->pending_modeset) {
|
||||||
flags |= DRM_MODE_ATOMIC_ALLOW_MODESET;
|
flags |= DRM_MODE_ATOMIC_ALLOW_MODESET;
|
||||||
} else {
|
} else if (!(flags & DRM_MODE_ATOMIC_TEST_ONLY)) {
|
||||||
flags |= DRM_MODE_ATOMIC_NONBLOCK;
|
flags |= DRM_MODE_ATOMIC_NONBLOCK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue