DrmOutput: Ensure waylandOutput dpms mode matches DrmOutputs
After 797ccca48c
It appeard WaylandOutput (OutputInterface) would never get their Dpms
mode.
This commit is contained in:
parent
797ccca48c
commit
5c3e03259a
1 changed files with 2 additions and 4 deletions
|
@ -579,6 +579,7 @@ void DrmOutput::updateDpms(KWaylandServer::OutputInterface::DpmsMode mode)
|
||||||
|
|
||||||
if (drmMode == m_dpmsModePending) {
|
if (drmMode == m_dpmsModePending) {
|
||||||
qCDebug(KWIN_DRM) << "New DPMS mode equals old mode. DPMS unchanged.";
|
qCDebug(KWIN_DRM) << "New DPMS mode equals old mode. DPMS unchanged.";
|
||||||
|
waylandOutput()->setDpmsMode(mode);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -607,10 +608,7 @@ void DrmOutput::dpmsFinishOn()
|
||||||
{
|
{
|
||||||
qCDebug(KWIN_DRM) << "DPMS mode set for output" << m_crtc->id() << "to On.";
|
qCDebug(KWIN_DRM) << "DPMS mode set for output" << m_crtc->id() << "to On.";
|
||||||
|
|
||||||
auto wlOutput = waylandOutput();
|
waylandOutput()->setDpmsMode(toWaylandDpmsMode(DpmsMode::On));
|
||||||
if (wlOutput) {
|
|
||||||
wlOutput->setDpmsMode(toWaylandDpmsMode(DpmsMode::On));
|
|
||||||
}
|
|
||||||
|
|
||||||
m_backend->checkOutputsAreOn();
|
m_backend->checkOutputsAreOn();
|
||||||
if (!m_backend->atomicModeSetting()) {
|
if (!m_backend->atomicModeSetting()) {
|
||||||
|
|
Loading…
Reference in a new issue