Skip to content

Commit

Permalink
fix: wake up on mac when screen locked
Browse files Browse the repository at this point in the history
  • Loading branch information
eeo-wupl authored and shymega committed May 14, 2023
1 parent 53180da commit 31ac935
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/platform/OSXScreen.mm
Original file line number Diff line number Diff line change
Expand Up @@ -811,6 +811,8 @@
IORegistryEntrySetCFProperty(entry, CFSTR("IORequestIdle"), kCFBooleanFalse);
IOObjectRelease(entry);
}
IOPMAssertionID assertionID;
IOPMAssertionDeclareUserActivity(CFSTR(""), kIOPMUserActiveLocal, &assertionID);

avoidSupression();
}
Expand Down

0 comments on commit 31ac935

Please sign in to comment.