[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:
parent
66ad99787c
commit
a1bcc8e848
1 changed files with 3 additions and 0 deletions
|
@ -557,6 +557,9 @@ bool DrmOutput::present(DrmBuffer *buffer)
|
||||||
m_currentBuffer = buffer;
|
m_currentBuffer = buffer;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (m_dpmsMode != DpmsMode::On) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (m_currentBuffer) {
|
if (m_currentBuffer) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue