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

lock: fix dpms fade surface getting stuck after unlock

port 1.5

(cherry picked from commit 116cef0b3a)
This commit is contained in:
bbedward
2026-07-20 10:39:44 -04:00
committed by dms-ci[bot]
parent 95b120b475
commit 847718459c
3 changed files with 24 additions and 1 deletions
+8
View File
@@ -139,6 +139,14 @@ Item {
return;
fadeDpmsWindowLoader.loadedWindow.cancelFade();
}
function onMonitorsOffChanged() {
if (IdleService.monitorsOff)
return;
if (!fadeDpmsWindowLoader.loadedWindow)
return;
fadeDpmsWindowLoader.loadedWindow.dismiss();
}
}
}
}
+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)