From 38c4980b0d92f3836805becac13365d871afe62d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arsen=20Arsenovi=C4=87?= Date: Tue, 30 Apr 2024 00:46:52 +0200 Subject: [PATCH] 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 --- src/backends/drm/drm_backend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/drm/drm_backend.cpp b/src/backends/drm/drm_backend.cpp index ca192d1621..1209a52601 100644 --- a/src/backends/drm/drm_backend.cpp +++ b/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); }); }