backends/drm: fix night light updates after dpms

BUG: 480911
FIXED-IN: 6.0
This commit is contained in:
Xaver Hugl 2024-02-07 20:38:21 +01:00
parent 4b7874391d
commit 83fe158a16
2 changed files with 1 additions and 5 deletions

View file

@ -195,6 +195,7 @@ bool DrmOutput::setDrmDpmsMode(DpmsMode mode)
if (active) {
m_renderLoop->uninhibit();
m_renderLoop->scheduleRepaint();
doSetChannelFactors(m_channelFactors);
} else {
m_renderLoop->inhibit();
}

View file

@ -75,11 +75,6 @@ ColorDevice::ColorDevice(Output *output, QObject *parent)
d->updateTimer = new QTimer(this);
d->updateTimer->setSingleShot(true);
connect(d->updateTimer, &QTimer::timeout, this, &ColorDevice::update);
connect(output, &Output::dpmsModeChanged, this, [this, output]() {
if (output->dpmsMode() == Output::DpmsMode::On) {
update();
}
});
d->output = output;
scheduleUpdate();