mirror of
https://github.com/hyprwm/aquamarine.git
synced 2024-11-17 04:56:00 +01:00
drm: reject double-pf commits only with a buffer or when modesetting
This commit is contained in:
parent
25ee42673f
commit
461d33583a
1 changed files with 1 additions and 1 deletions
|
@ -1008,7 +1008,7 @@ bool Aquamarine::CDRMOutput::commitState(bool onlyTest) {
|
||||||
backend->backend->log(AQ_LOG_DEBUG, std::format("drm: Disabling output {}", name));
|
backend->backend->log(AQ_LOG_DEBUG, std::format("drm: Disabling output {}", name));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!BLOCKING && connector->isPageFlipPending) {
|
if ((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");
|
backend->backend->log(AQ_LOG_ERROR, "drm: Cannot commit when a page-flip is awaiting");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue