Test popup remapping and keep headless input tests isolated
This commit is contained in:
1 parent
d62fae9e88
commit
0d618964a7
2 files changed
+20
No files matched your search
@@ -184,6 +184,8 @@ void UserActivityMonitor::useLocalActivity() {
|
||||
}
|
||||
|
||||
qint64 UserActivityMonitor::systemIdleTime() {
|
||||
const QString platform = QGuiApplication::platformName();
|
||||
if (platform == "offscreen" || platform == "minimal") return -1;
|
||||
#ifdef Q_OS_WIN
|
||||
LASTINPUTINFO info = {sizeof(info), 0};
|
||||
if (!GetLastInputInfo(&info)) { GUI_WARN("activity: GetLastInputInfo failed error=%lu", GetLastError()); return -1; }
|
||||
|
||||
Reference in new issue
Block a user