backends/drm: Prevent "recently disconnected" screen wakeup more aggressively

It seems that, on some systems (such as on mine), 1s is not long enough
for a spurious disconnect and reconnect to happen.  2s seems enough,
however, while still likely not being long enough to cause user
confusion.

BUG: 480026
This commit is contained in:
Arsen Arsenović 2024-04-30 00:46:52 +02:00
parent 6acc652487
commit 38c4980b0d
No known key found for this signature in database
GPG key ID: 52C294301EA2C493

View file

@ -239,7 +239,7 @@ void DrmBackend::removeOutput(DrmAbstractOutput *o)
if (o->dpmsMode() == Output::DpmsMode::Off) {
const QUuid id = o->uuid();
m_recentlyUnpluggedDpmsOffOutputs.push_back(id);
QTimer::singleShot(1000, this, [this, id]() {
QTimer::singleShot(2000, this, [this, id]() {
m_recentlyUnpluggedDpmsOffOutputs.removeOne(id);
});
}