[drm] Don't present on an output which is in dpms standby

It will fail if the output is not on, so let's don't try to present
on a disabled output.
This commit is contained in:
Martin Gräßlin 2015-08-31 08:58:25 +02:00
parent 66ad99787c
commit a1bcc8e848

View file

@ -557,6 +557,9 @@ bool DrmOutput::present(DrmBuffer *buffer)
m_currentBuffer = buffer;
return false;
}
if (m_dpmsMode != DpmsMode::On) {
return false;
}
if (m_currentBuffer) {
return false;
}