Commit b0851162 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

backends/drm: Fix leaving dangling dpms input event filter

If the output is turned back on before m_turnOffTimer expires, the
dpms input event filter won't be reset and all input events will go to
the void.

BUG: 460322


(cherry picked from commit c56517ec)
parent a76704ad
Pipeline #247185 failed with stage
in 13 minutes and 57 seconds
......@@ -250,6 +250,7 @@ void DrmOutput::setDpmsMode(DpmsMode mode)
m_gpu->platform()->createDpmsFilter();
}
} else {
m_gpu->platform()->checkOutputsAreOn();
m_turnOffTimer.stop();
if (mode != dpmsMode() && setDrmDpmsMode(mode)) {
Q_EMIT wakeUp();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment