Merge pull request #1234 from mntmn/master

fix cursor loss w/ legacy drm and software cursor (tested on etnaviv)
This commit is contained in:
emersion 2018-09-10 18:45:07 +02:00 committed by GitHub
commit d8ca467211
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,7 +39,10 @@ bool legacy_crtc_set_cursor(struct wlr_drm_backend *drm,
} }
if (!bo) { if (!bo) {
drmModeSetCursor(drm->fd, crtc->id, 0, 0, 0); if (drmModeSetCursor(drm->fd, crtc->id, 0, 0, 0)) {
wlr_log_errno(WLR_DEBUG, "Failed to clear hardware cursor");
return false;
}
return true; return true;
} }