Repository navigation
fix(lockscreen): keep password input focused after suspend/wake - #8869
Closed
Phuocminh94 wants to merge 1 commit into
Closed
Phuocminh94 wants to merge 1 commit into
Phuocminh94 wants to merge 1 commit into
Conversation
Fixes an issue where the lock screen loses keyboard focus after wake/suspend on Wayland.
Contributor
There was a problem hiding this comment.
Pull request overview
Improves lock-screen keyboard focus recovery after suspend/wake.
Tip
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
Changes:
- Gives the password input default focus.
- Adds a retry timer to restore lost focus.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
|
||
| Timer { | ||
| interval: 100 | ||
| running: root.inputEnabled && !root.authenticatingPassword && !passwordInput.activeFocus |
Comment on lines
+222
to
+227
| interval: 100 | ||
| running: root.inputEnabled && !root.authenticatingPassword && !passwordInput.activeFocus | ||
| repeat: true | ||
| onTriggered: { | ||
| root.forcePasswordFocus() | ||
| } |
This was referenced Aug 30, 2026
Member
|
Automated duplication check: this pull request looks similar to #7592, which covers the same lock refocus timer. I keep that one open and close this one to consolidate review. If you feel this is the wrong decision, please open the PR again with a note on the difference. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When waking the system from suspend, the lock screen completely fails to regain keyboard focus. The password input becomes entirely unresponsive, and the user is effectively locked out of the session, forcing them to switch to a TTY to restart the display manager.
Solution: