summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif/shell/quickshell/Lockscreen.qml
diff options
context:
space:
mode:
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/Lockscreen.qml')
-rw-r--r--accounts/gkleen@sif/shell/quickshell/Lockscreen.qml5
1 files changed, 4 insertions, 1 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/Lockscreen.qml b/accounts/gkleen@sif/shell/quickshell/Lockscreen.qml
index fc2e1f9f..30fa68b5 100644
--- a/accounts/gkleen@sif/shell/quickshell/Lockscreen.qml
+++ b/accounts/gkleen@sif/shell/quickshell/Lockscreen.qml
@@ -35,8 +35,11 @@ Scope {
35 target: Custom.Systemd 35 target: Custom.Systemd
36 function onSleep(before: bool) { 36 function onSleep(before: bool) {
37 console.log(`received prepare for sleep ${before}`); 37 console.log(`received prepare for sleep ${before}`);
38 if (before) 38 if (before) {
39 lock.locked = true; 39 lock.locked = true;
40 if (pam.active)
41 pam.abort();
42 }
40 } 43 }
41 function onLock() { lock.locked = true; } 44 function onLock() { lock.locked = true; }
42 function onUnlock() { lock.locked = false; } 45 function onUnlock() { lock.locked = false; }