From 7c3565f9bedc7cb601cc0baa14792247e4dc1d5a Mon Sep 17 00:00:00 2001 From: Vaxry Date: Tue, 30 Jul 2024 15:55:39 +0200 Subject: [PATCH] drm: don't rollback cursors on test --- src/backend/drm/DRM.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/backend/drm/DRM.cpp b/src/backend/drm/DRM.cpp index e954e85..16bab55 100644 --- a/src/backend/drm/DRM.cpp +++ b/src/backend/drm/DRM.cpp @@ -1316,7 +1316,11 @@ void Aquamarine::SDRMConnector::applyCommit(const SDRMConnectorCommitData& data) } void Aquamarine::SDRMConnector::rollbackCommit(const SDRMConnectorCommitData& data) { - // cursors are applied regardless. + // cursors are applied regardless, + // unless this was a test + if (data.test) + return; + if (crtc->cursor && data.cursorFB) crtc->cursor->back = data.cursorFB;