lock screen: skip entrance animation on wake from sleep via SleepService

This commit is contained in:
Damocles 2026-04-24 21:26:26 +02:00
parent 4256c3b86f
commit 0c955f93f8
3 changed files with 39 additions and 0 deletions

View file

@ -229,6 +229,22 @@ WlSessionLockSurface {
_keyInput.forceActiveFocus();
}
// Skip entrance animations on wake from sleep - lock was already visible
Connections {
target: S.SleepService
function onWokeFromSleep() {
if (!root.lock.locked)
return;
// Qt.callLater ensures this runs after onVisibleChanged resets
Qt.callLater(() => {
_overlay._revealed = true;
_clockItem._revealed = true;
_widgetCol._revealed = true;
});
}
}
// Sync TextInput when auth clears buffer externally (PAM submit, lock reset)
Connections {
target: root.auth