diff --git a/src/wayland/idle_interface.cpp b/src/wayland/idle_interface.cpp index 90d7324ac4..9d528fe202 100644 --- a/src/wayland/idle_interface.cpp +++ b/src/wayland/idle_interface.cpp @@ -168,7 +168,8 @@ void IdleTimeoutInterface::Private::setup(quint32 timeout) } timer = new QTimer(q); timer->setSingleShot(true); - timer->setInterval(timeout); + // less than 5 sec is not idle by definition + timer->setInterval(qMax(timeout, 5000u)); QObject::connect(timer, &QTimer::timeout, q, [this] { if (resource) {