1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-01 19:18:28 -04:00

lock: fix dpms fade surface getting stuck after unlock

port 1.5
This commit is contained in:
bbedward
2026-07-20 10:39:44 -04:00
parent dc75f1f01d
commit 116cef0b3a
3 changed files with 24 additions and 1 deletions
+15 -1
View File
@@ -4,6 +4,7 @@ import QtQuick
import Quickshell
import Quickshell.Wayland
import qs.Common
import qs.Services
PanelWindow {
id: root
@@ -65,10 +66,23 @@ PanelWindow {
}
function cancelFade() {
dismiss();
fadeCancelled();
}
function dismiss() {
fadeSeq.stop();
fadeOverlay.opacity = 0.0;
active = false;
fadeCancelled();
}
Connections {
target: IdleService
function onIsShellLockedChanged() {
if (IdleService.isShellLocked)
return;
root.dismiss();
}
}
MouseArea {
+1
View File
@@ -335,6 +335,7 @@ Scope {
notifyLockedHint(sessionLock.secure);
if (!sessionLock.secure)
return;
IdleService.dismissFadeToLock();
lockRetryAttempts = 0;
pendingLock = false;
if (lockPowerOffArmed && powerOffOnLock)