Compare commits

..
2 changed files with 9 additions and 1 deletions

View file

@ -31,7 +31,7 @@ Scope {
target: S.LockService
function onLockRequested() {
if (!S.LockService.enabled)
if (!S.LockService.enabled || _lock.locked)
return;
S.ScreenshotService.capture(Quickshell.screens.length);
_lockTimeout.start();

View file

@ -15,6 +15,14 @@ WlSessionLockSurface {
property real _unlockFade: 1
// Solid background - WlSessionLockSurface.color can be unreliable with
// Wayland compositors, so paint an explicit opaque rect to prevent the
// compositor fallback color (niri red) from bleeding through.
Rectangle {
anchors.fill: parent
color: S.Theme.base00
}
// Clear desktop screenshot from ScreenshotService - visible immediately
Image {
anchors.fill: parent