don't set vrr policy on incompatible monitors

This commit is contained in:
Xaver Hugl 2021-05-01 23:22:38 +02:00
parent a8d7e99874
commit 6a9d82eb55

View file

@ -374,7 +374,7 @@ void AbstractWaylandOutput::setOverscan(uint32_t overscan)
void AbstractWaylandOutput::setVrrPolicy(RenderLoop::VrrPolicy policy)
{
if (renderLoop()->vrrPolicy() != policy) {
if (renderLoop()->vrrPolicy() != policy && (m_capabilities & Capability::Vrr)) {
renderLoop()->setVrrPolicy(policy);
emit vrrPolicyChanged();
}