From 8d1d10397a8829b48fc33ec91433f11071af32c0 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Thu, 4 Jul 2024 23:11:18 +0200 Subject: [PATCH] drm: don't shift state on failed commits --- 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 685cbe8..a64c437 100644 --- a/src/backend/drm/DRM.cpp +++ b/src/backend/drm/DRM.cpp @@ -1196,7 +1196,7 @@ bool Aquamarine::CDRMOutput::commitState(bool onlyTest) { bool ok = connector->commitState(data); - if (onlyTest) + if (onlyTest || !ok) return ok; events.commit.emit();