1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-04 12:38:31 -04:00

lock: add lockAndOutputsOff IPC function

(cherry picked from commit bf12665adb)
This commit is contained in:
bbedward
2026-07-17 15:24:35 -04:00
parent 4ff93bf46e
commit 89895da4fa
3 changed files with 134 additions and 19 deletions
+2 -1
View File
@@ -67,6 +67,7 @@ Singleton {
property var lockComponent: null
property bool monitorsOff: false
property bool isShellLocked: false
property bool lockPowerOffRequested: false
function reapplyDpmsIfNeeded() {
if (monitorsOff)
@@ -146,7 +147,7 @@ Singleton {
id: lockWakeMonitor
timeout: 1
respectInhibitors: false
enabled: root.enabled && root.isShellLocked && root.monitorsOff && SettingsData.lockScreenPowerOffMonitorsOnLock
enabled: root.enabled && root.isShellLocked && root.monitorsOff && (SettingsData.lockScreenPowerOffMonitorsOnLock || root.lockPowerOffRequested)
onIsIdleChanged: {
if (!isIdle && root.monitorsOff)
root.requestMonitorOn();