platforms/drm: fix legacy dpms

BUG: 442969
This commit is contained in:
Xaver Hugl 2021-09-27 00:10:31 +02:00 committed by Aleix Pol Gonzalez
parent 7bca5d737d
commit 4aebf0d730

View file

@ -380,7 +380,7 @@ bool DrmPipeline::setActive(bool active)
success = atomicCommit();
}
} else {
m_connector->getProp(DrmConnector::PropertyIndex::Dpms)->setPropertyLegacy(active ? DRM_MODE_DPMS_ON : DRM_MODE_DPMS_OFF);
success = m_connector->getProp(DrmConnector::PropertyIndex::Dpms)->setPropertyLegacy(active ? DRM_MODE_DPMS_ON : DRM_MODE_DPMS_OFF);
}
if (!success) {
qCWarning(KWIN_DRM) << "Setting active to" << active << "failed" << strerror(errno);