Skip to content

Commit

Permalink
fix: wake up on mac when screen locked
Browse files Browse the repository at this point in the history
@shymega's note: from debauchee/barrier#1927, thank you @junbujianwpl.

I'm creating PRs from Barrier's unmerged PRs for Input Leap. This is so
we can a) let the community know that there is an active fork and b)
take advantage of the code contributions that Barrier simply isn't
accepting. This gives us the benefit of improved codebase and bug fixes,
such as this one, which happens on Mac machines.
  • Loading branch information
eeo-wupl authored and shymega committed May 17, 2023
1 parent eec141a commit 835e22e
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 835e22e

Please sign in to comment.