summaryrefslogtreecommitdiff
path: root/modules/lock
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-17 15:50:34 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-17 15:50:34 +1000
commit53bfe29a4037486375fd20de8113004f4c2f5bd3 (patch)
tree0b30538264ea8708564806b349db078e2efef30a /modules/lock
parent[CI] chore: update flake (diff)
downloadcaelestia-shell-53bfe29a4037486375fd20de8113004f4c2f5bd3.tar.gz
caelestia-shell-53bfe29a4037486375fd20de8113004f4c2f5bd3.tar.bz2
caelestia-shell-53bfe29a4037486375fd20de8113004f4c2f5bd3.zip
lock: refactor
Diffstat (limited to 'modules/lock')
-rw-r--r--modules/lock/Center.qml2
-rw-r--r--modules/lock/LockSurface.qml5
2 files changed, 2 insertions, 5 deletions
diff --git a/modules/lock/Center.qml b/modules/lock/Center.qml
index 574894b..4905058 100644
--- a/modules/lock/Center.qml
+++ b/modules/lock/Center.qml
@@ -124,7 +124,7 @@ ColumnLayout {
}
Keys.onPressed: event => {
- if (!root.lock.locked)
+ if (root.lock.unlocking)
return;
if (event.key === Qt.Key_Enter || event.key === Qt.Key_Return)
diff --git a/modules/lock/LockSurface.qml b/modules/lock/LockSurface.qml
index d773c63..acdc7f2 100644
--- a/modules/lock/LockSurface.qml
+++ b/modules/lock/LockSurface.qml
@@ -13,10 +13,8 @@ WlSessionLockSurface {
required property WlSessionLock lock
required property Pam pam
+ readonly property alias unlocking: unlockAnim.running
readonly property bool animating: initAnim.running || unlockAnim.running
- property bool locked
-
- Component.onCompleted: locked = true
color: "transparent"
@@ -24,7 +22,6 @@ WlSessionLockSurface {
target: root.lock
function onUnlock(): void {
- root.locked = false;
unlockAnim.start();
}
}