diff --git a/Modules/LockScreen/LockScreen.qml b/Modules/LockScreen/LockScreen.qml index b3a95cd1d..de4db5b88 100644 --- a/Modules/LockScreen/LockScreen.qml +++ b/Modules/LockScreen/LockScreen.qml @@ -125,8 +125,10 @@ Loader { anchors.fill: parent hoverEnabled: true acceptedButtons: Qt.NoButton - onPositionChanged: { - if (passwordInput) { + onEntered: { + // Avoid repeatedly forcing focus on every mouse move. + // This can churn text-input surface state during monitor/suspend transitions. + if (passwordInput && !passwordInput.activeFocus) { passwordInput.forceActiveFocus(); } }