backends/drm: fix night light updates after dpms
BUG: 480911 FIXED-IN: 6.0
This commit is contained in:
parent
4b7874391d
commit
83fe158a16
2 changed files with 1 additions and 5 deletions
|
@ -195,6 +195,7 @@ bool DrmOutput::setDrmDpmsMode(DpmsMode mode)
|
|||
if (active) {
|
||||
m_renderLoop->uninhibit();
|
||||
m_renderLoop->scheduleRepaint();
|
||||
doSetChannelFactors(m_channelFactors);
|
||||
} else {
|
||||
m_renderLoop->inhibit();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue