aboutsummaryrefslogtreecommitdiff
path: root/backend/drm
diff options
context:
space:
mode:
Diffstat (limited to 'backend/drm')
-rw-r--r--backend/drm/drm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index b4d25e1d..743cc291 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -1119,6 +1119,9 @@ static void dealloc_crtc(struct wlr_drm_connector *conn) {
enable_drm_connector(&conn->output, false);
drm_plane_finish_surface(conn->crtc->primary);
drm_plane_finish_surface(conn->crtc->cursor);
+ if (conn->crtc->cursor != NULL) {
+ conn->crtc->cursor->cursor_enabled = false;
+ }
conn->crtc = NULL;
}