mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Merge branch 'windows-autoaway-fix'
The current way is in fact broken
This commit is contained in:
commit
8a06598af4
|
@ -23,8 +23,9 @@
|
|||
uint32_t Platform::getIdleTime()
|
||||
{
|
||||
LASTINPUTINFO info = { 0 };
|
||||
info.cbSize = sizeof(info);
|
||||
if(GetLastInputInfo(&info))
|
||||
return info.dwTime / 1000;
|
||||
return GetTickCount() - info.dwTime;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user