aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-09-10 18:45:07 +0200
committerGitHub <noreply@github.com>2018-09-10 18:45:07 +0200
commitd8ca46721197d3fcd056a1782ec5d574c53fbe69 (patch)
tree06cb02d4c9b16d4e707f57bd8b82cbca7c8f1454 /backend
parent0086dbed0983949af97d52feb67d417415a57aea (diff)
parente1c91884fb3b76ec029cff189e2bfad99e9f06f4 (diff)
Merge pull request #1234 from mntmn/master
fix cursor loss w/ legacy drm and software cursor (tested on etnaviv)
Diffstat (limited to 'backend')
-rw-r--r--backend/drm/legacy.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/backend/drm/legacy.c b/backend/drm/legacy.c
index d27cf137..c205e167 100644
--- a/backend/drm/legacy.c
+++ b/backend/drm/legacy.c
@@ -39,7 +39,10 @@ bool legacy_crtc_set_cursor(struct wlr_drm_backend *drm,
}
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;
}