lock: fix exit anim for multimon
This commit is contained in:
parent
3f981680ef
commit
0bf32f7b8f
2 changed files with 14 additions and 4 deletions
|
|
@ -12,6 +12,8 @@ Scope {
|
|||
WlSessionLock {
|
||||
id: lock
|
||||
|
||||
property bool unlocked
|
||||
|
||||
locked: true
|
||||
|
||||
onLockedChanged: {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue