You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The idle time on macOS Sierra doesn't get reset when on macOS Sierra. I switched the Mac native plugin to use the following script and now idle time gets reset when you type as it should.
#import <CoreFoundation/CoreFoundation.h>
#import <AppKit/AppKit.h>
/**
Returns the number of seconds the machine has been idle or -1 if an error occurs.
The code is compatible with Tiger/10.4 and later (but not iOS).
*/
int32_t SystemIdleTime(void) {
double idleSeconds = CGEventSourceSecondsSinceLastEventType(kCGEventSourceStateHIDSystemState, kCGAnyInputEventType);
return (int32_t) (idleSeconds * 1000);
}
The text was updated successfully, but these errors were encountered:
The idle time on macOS Sierra doesn't get reset when on macOS Sierra. I switched the Mac native plugin to use the following script and now idle time gets reset when you type as it should.
The text was updated successfully, but these errors were encountered: