mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 21:05:58 +01:00
Allow forcing legacy DRM interface
This commit is contained in:
parent
1682c0d983
commit
4a53aab466
1 changed files with 4 additions and 1 deletions
|
@ -31,7 +31,10 @@ bool wlr_drm_check_features(struct wlr_drm_backend *backend) {
|
|||
return false;
|
||||
}
|
||||
|
||||
if (drmSetClientCap(backend->fd, DRM_CLIENT_CAP_ATOMIC, 1)) {
|
||||
if (getenv("WLR_DRM_NO_ATOMIC")) {
|
||||
wlr_log(L_DEBUG, "WLR_DRM_NO_ATOMIC set, forcing legacy DRM interface");
|
||||
backend->iface = &legacy_iface;
|
||||
} else if (drmSetClientCap(backend->fd, DRM_CLIENT_CAP_ATOMIC, 1)) {
|
||||
wlr_log(L_DEBUG, "Atomic modesetting unsupported, using legacy DRM interface");
|
||||
backend->iface = &legacy_iface;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue