From e1c91884fb3b76ec029cff189e2bfad99e9f06f4 Mon Sep 17 00:00:00 2001 From: mntmn Date: Mon, 10 Sep 2018 17:30:26 +0200 Subject: fix cursor loss w/ legacy drm and software cursor (tested on etnaviv) --- backend/drm/legacy.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3