From d58d4b0078d591833411354e6db684e69f058b21 Mon Sep 17 00:00:00 2001 From: Damocles Date: Fri, 17 Apr 2026 15:44:09 +0200 Subject: [PATCH] fix lock binding loops caused by id/property name shadowing --- modules/lock/Lock.qml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/lock/Lock.qml b/modules/lock/Lock.qml index fd6821d..2406712 100644 --- a/modules/lock/Lock.qml +++ b/modules/lock/Lock.qml @@ -11,17 +11,17 @@ Scope { property string _sessionPath: "" WlSessionLock { - id: lock + id: _lock LockSurface { - lock: lock - auth: auth + lock: _lock + auth: _auth } } LockAuth { - id: auth - lock: lock + id: _auth + lock: _lock } // Resolve the actual logind session object path at startup @@ -55,7 +55,7 @@ Scope { stdout: SplitParser { onRead: data => { if (data.indexOf(".Lock ()") !== -1 && root._enabled) - lock.locked = true; + _lock.locked = true; // Unlock is PAM-driven, ignore logind Unlock signal } } @@ -64,11 +64,11 @@ Scope { // Set logind LockedHint when lock state changes Process { id: _lockedHint - command: ["busctl", "call", "--system", "org.freedesktop.login1", root._sessionPath || "/org/freedesktop/login1/session/auto", "org.freedesktop.login1.Session", "SetLockedHint", "b", lock.locked ? "true" : "false"] + command: ["busctl", "call", "--system", "org.freedesktop.login1", root._sessionPath || "/org/freedesktop/login1/session/auto", "org.freedesktop.login1.Session", "SetLockedHint", "b", _lock.locked ? "true" : "false"] } Connections { - target: lock + target: _lock function onLockStateChanged() { if (root._sessionPath)