From 8d732fa8aff8b12ef2b1e2f00fc8153e41312b72 Mon Sep 17 00:00:00 2001 From: Maximilian Seidler <78690852+PaideiaDilemma@users.noreply.github.com> Date: Mon, 21 Oct 2024 16:13:19 +0000 Subject: [PATCH] drm: guard cursorFB buffer in restoreAfterVT (#100) --- src/backend/drm/DRM.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/drm/DRM.cpp b/src/backend/drm/DRM.cpp index 3310ba0..f4de19e 100644 --- a/src/backend/drm/DRM.cpp +++ b/src/backend/drm/DRM.cpp @@ -331,7 +331,7 @@ void Aquamarine::CDRMBackend::restoreAfterVT() { if (c->crtc->pendingCursor) data.cursorFB = c->crtc->pendingCursor; - if (data.cursorFB && data.cursorFB->buffer->dmabuf().modifier == DRM_FORMAT_MOD_INVALID) + if (data.cursorFB && (data.cursorFB->dead || data.cursorFB->buffer->dmabuf().modifier == DRM_FORMAT_MOD_INVALID)) data.cursorFB = nullptr; backend->log(AQ_LOG_DEBUG,