From dd9890d2bcb3f4bf19b23f2f9acbfdec15ff89b4 Mon Sep 17 00:00:00 2001 From: Ikalco <73481042+ikalco@users.noreply.github.com> Date: Sun, 1 Sep 2024 12:48:15 -0500 Subject: [PATCH] drm: allow disabling commit, even if pageFlipPending (#72) --- 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 5606ecd..7e4616b 100644 --- a/src/backend/drm/DRM.cpp +++ b/src/backend/drm/DRM.cpp @@ -1465,7 +1465,7 @@ bool Aquamarine::CDRMOutput::commitState(bool onlyTest) { backend->backend->log(AQ_LOG_DEBUG, std::format("drm: Disabling output {}", name)); } - if ((NEEDS_RECONFIG || (COMMITTED & COutputState::eOutputStateProperties::AQ_OUTPUT_STATE_BUFFER)) && connector->isPageFlipPending) { + if (STATE.enabled && (NEEDS_RECONFIG || (COMMITTED & COutputState::eOutputStateProperties::AQ_OUTPUT_STATE_BUFFER)) && connector->isPageFlipPending) { backend->backend->log(AQ_LOG_ERROR, "drm: Cannot commit when a page-flip is awaiting"); return false; }