Skip to content

Fix lock password focus after resume - #12614

Closed
dexteresc wants to merge 1 commit into
omacom:quattrofrom
dexteresc:fix-lock-password-focus
Closed

dexteresc wants to merge 1 commit into
omacom:quattrofrom
dexteresc:fix-lock-password-focus

Conversation

@dexteresc

Copy link
Copy Markdown

Summary

  • Restore keyboard focus to the password input when the lock window becomes active after resume.
  • Reclaim focus if the active lock surface is left without its only interactive input.
  • Recheck the current lock/authentication state before a deferred focus request runs.
  • Add a compositor-backed regression test for focus loss and recovery.

Root cause

The lock surface stays mounted while the displays are blanked and the machine suspends. The existing focus requests only run when the component is created or input is enabled, so neither necessarily runs after opening the lid. The resumed window can therefore be active without an active focus item until the user clicks the password box.

Test plan

  • test/shell.d/lock-focus-test.sh
  • test/shell.d/lock-password-overflow-test.sh
  • test/shell.d/lock-fingerprint-indicator-test.sh
  • test/shell.d/lock-blank-fingerprint-test.sh
  • test/shell.d/lock-stranded-recovery-test.sh
  • git diff --check

The full local suite was also run. It currently has eight unrelated environment/baseline failures, including tests that require a sibling omarchy-pkgs checkout and a shell-service responsiveness check; the focused lock tests above pass against the active Wayland compositor.

@dexteresc

Copy link
Copy Markdown
Author

Superseded by #12652. The code is identical; the replacement corrects the Git commit author identity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants