diff options
author | emersion <contact@emersion.fr> | 2018-05-03 20:52:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-03 20:52:02 +0100 |
commit | 96d166ed537a7bf6567f063c7212affb382567ac (patch) | |
tree | df02ef7863ef2d8fbd3f19bfd92ccce9d0d3da65 | |
parent | 2964248f42568d7fae410072be30cee1981d6f96 (diff) | |
parent | 1637053ef858f595a4a2e2824d2e198821d61a39 (diff) |
Merge pull request #945 from agx/wlr-drm-no-atomic
drm: only disable atomic modesetting when WLR_DRM_NO_ATOMIC == 1
-rw-r--r-- | backend/drm/drm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c index dc512151..7ace90dc 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -32,7 +32,8 @@ bool check_drm_features(struct wlr_drm_backend *drm) { return false; } - if (getenv("WLR_DRM_NO_ATOMIC")) { + const char *no_atomic = getenv("WLR_DRM_NO_ATOMIC"); + if (no_atomic && strcmp(no_atomic, "1") == 0) { wlr_log(L_DEBUG, "WLR_DRM_NO_ATOMIC set, forcing legacy DRM interface"); drm->iface = &legacy_iface; } else if (drmSetClientCap(drm->fd, DRM_CLIENT_CAP_ATOMIC, 1)) { |