fix: notice input on the lock screen despite idle inhibitors

This commit is contained in:
Felitendo committed 2026-09-22 21:03:41 +02:00
1 parent 7c87adb733
commit 77ae883b98
12 files changed
+280 -38

No files matched your search

+5 -2
View File
@@ -19,6 +19,8 @@
#pragma once
#include "inputwatcher.h"
#include <QElapsedTimer>
#include <QObject>
#include <QPointer>
@@ -44,7 +46,8 @@ private Q_SLOTS:
void onPrepareForSleep(bool sleeping);
private:
void arm();
// Scan at the next input after calmMs without any.
void arm(int calmMs);
void onResume();
void startScan(const QString &why);
void onScanFinished(const QJsonObject &result);
@@ -58,5 +61,5 @@ private:
QElapsedTimer m_lockedFor;
QPointer<DaemonRequest> m_scan;
QTimer m_armTimer;
int m_idleId = -1;
InputWatcher m_input;
};