diff options
Diffstat (limited to 'backend')
-rw-r--r-- | backend/drm/drm.c | 3 | ||||
-rw-r--r-- | backend/drm/util.c | 2 | ||||
-rw-r--r-- | backend/libinput/backend.c | 2 |
3 files changed, 4 insertions, 3 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)) { diff --git a/backend/drm/util.c b/backend/drm/util.c index 41ba47d1..73669205 100644 --- a/backend/drm/util.c +++ b/backend/drm/util.c @@ -266,7 +266,7 @@ static bool match_obj_(struct match_state *st, size_t skips, size_t score, size_ continue; } - // Not compatable + // Not compatible if (!(st->objs[st->res[i]] & (1 << i))) { continue; } diff --git a/backend/libinput/backend.c b/backend/libinput/backend.c index 4fcd2fe4..f4d54c97 100644 --- a/backend/libinput/backend.c +++ b/backend/libinput/backend.c @@ -92,7 +92,7 @@ static bool backend_start(struct wlr_backend *_backend) { wlr_log(L_ERROR, "Failed to create input event on event loop"); return false; } - wlr_log(L_DEBUG, "libinput sucessfully initialized"); + wlr_log(L_DEBUG, "libinput successfully initialized"); return true; } |