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
wilder/Plasma/6.2
Arsen Arsenović 2 years ago
parent 6acc652487
commit 38c4980b0d
No known key found for this signature in database
GPG Key ID: 52C294301EA2C493
  1. 2
      src/backends/drm/drm_backend.cpp

@ -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);
});
}

Loading…
Cancel
Save