mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-20 10:14:01 -04:00
idle: wake monitors after automatic lock (#3633)
Locking rearms the normal idle monitors and can lose their wake transition.
Enable the existing locked-monitor wake listener for idle power-off too.
(cherry picked from commit 22fa08f0ff)
This commit is contained in:
committed by
bbedward
parent
3061e1301d
commit
58a356bb05
@@ -148,14 +148,13 @@ Singleton {
|
||||
}
|
||||
}
|
||||
|
||||
// Wakes monitors powered off by the "power off monitors on lock" path.
|
||||
// Lock.qml's own wake handlers sit outside the session-lock surface and
|
||||
// never receive input, so wake on input via seat-level idle-notify instead.
|
||||
IdleMonitor {
|
||||
id: lockWakeMonitor
|
||||
timeout: 1
|
||||
respectInhibitors: false
|
||||
enabled: root.enabled && root.isShellLocked && root.monitorsOff && (SettingsData.lockScreenPowerOffMonitorsOnLock || root.lockPowerOffRequested)
|
||||
enabled: root.enabled && root.isShellLocked && root.monitorsOff
|
||||
onIsIdleChanged: {
|
||||
if (!enabled)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user