fix: wake up on mac when screen locked

This commit is contained in:
wupl 2023-04-17 18:13:46 +08:00
parent 653e4badeb
commit b36416bb33
1 changed files with 2 additions and 0 deletions

View File

@ -847,6 +847,8 @@ OSXScreen::enter()
IORegistryEntrySetCFProperty(entry, CFSTR("IORequestIdle"), kCFBooleanFalse);
IOObjectRelease(entry);
}
IOPMAssertionID assertionID;
IOPMAssertionDeclareUserActivity(CFSTR(""), kIOPMUserActiveLocal, &assertionID);
avoidSupression();
}