fix(lockscreen): reduce focus churn after resume

This commit is contained in:
Lysec
2026-03-06 13:46:32 +01:00
parent 3b3589ae52
commit f8ee284366
+4 -2
View File
@@ -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();
}
}