mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-14 23:34:01 -04:00
* lock: lock before sleep when the command skips logind Custom hibernate never emits PrepareForSleep, so the session stayed unlocked. Wait for the compositor lock on every sleep path, and release the delay inhibitor if that lock finished first. * lock: release the sleep inhibitor only after lockerReady * lock: read the sleep inhibitor under its mutex in the race test
6 lines
132 B
JavaScript
6 lines
132 B
JavaScript
.pragma library
|
|
|
|
function shouldWaitForLock(lockBeforeSuspend, alreadySecure) {
|
|
return !!lockBeforeSuspend && !alreadySecure;
|
|
}
|