Finalize verified 2720 Flip release source and untrack image outputs
This commit is contained in:
1 parent
2a3078e42c
commit
1c011b360a
121 files changed
+8467
-686
No files matched your search
@@ -781,7 +781,7 @@ int locker_run_main(int argc, char** argv) {
|
||||
XFlush(dpy);
|
||||
visible = false;
|
||||
}
|
||||
writeSoftkeySuppress(nowMs() + 350);
|
||||
writeSoftkeySuppress(nowMs() + 120);
|
||||
setSxmoStateFile("unlock");
|
||||
wakeScreenBacklight();
|
||||
wasScreenBlanked = false;
|
||||
@@ -809,7 +809,7 @@ int locker_run_main(int argc, char** argv) {
|
||||
statusMsg.clear();
|
||||
statusIsError = false;
|
||||
lockActivatedMs = now;
|
||||
writeSoftkeySuppress(now + 400);
|
||||
writeSoftkeySuppress(now + 120);
|
||||
}
|
||||
if (!visible) {
|
||||
XMapRaised(dpy, win);
|
||||
@@ -887,7 +887,7 @@ int locker_run_main(int argc, char** argv) {
|
||||
render();
|
||||
return;
|
||||
}
|
||||
if (now - lockActivatedMs < 80) {
|
||||
if (now - lockActivatedMs < 40) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1096,7 +1096,15 @@ int locker_run_main(int argc, char** argv) {
|
||||
}
|
||||
continue;
|
||||
}
|
||||
// Ignore CLOSE while locked so external scripts cannot dismiss the lockscreen
|
||||
// A trusted root lid daemon clears the lock flag before sending CLOSE.
|
||||
// If the flag is gone, release any stale locker grab/window immediately;
|
||||
// otherwise ignore CLOSE so user scripts cannot dismiss the lockscreen.
|
||||
if(cmd == "CLOSE" || cmd == "UNLOCK") {
|
||||
if(::access(kLockFlagPath, F_OK) != 0 && (visible || grabHeld)) {
|
||||
unlockPhone(false);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user