From 0bf32f7b8f7d85c75155cdfba67c007cb8007168 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 25 Jun 2025 14:47:05 +1000 Subject: lock: fix exit anim for multimon --- modules/lock/LockSurface.qml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'modules/lock/LockSurface.qml') diff --git a/modules/lock/LockSurface.qml b/modules/lock/LockSurface.qml index d99b3f3..b846241 100644 --- a/modules/lock/LockSurface.qml +++ b/modules/lock/LockSurface.qml @@ -10,15 +10,15 @@ WlSessionLockSurface { required property WlSessionLock lock - property bool locked + property bool thisLocked + readonly property bool locked: thisLocked && !lock.unlocked function unlock(): void { - locked = false; - background.opacity = 0; + lock.unlocked = true; animDelay.start(); } - Component.onCompleted: locked = true + Component.onCompleted: thisLocked = true color: "transparent" @@ -29,6 +29,14 @@ WlSessionLockSurface { onTriggered: root.lock.locked = false } + Connections { + target: root.lock + + function onUnlockedChanged(): void { + background.opacity = 0; + } + } + ScreencopyView { id: screencopy -- cgit v1.2.3-freya