Skip to content

fix(wayland): acquire keyboard focus on layer startup - #361

Merged
devmobasa merged 1 commit into
mainfrom
fix/layer-keyboard-focus-startup
Aug 30, 2026
Merged

fix(wayland): acquire keyboard focus on layer startup#361
devmobasa merged 1 commit into
mainfrom
fix/layer-keyboard-focus-startup

Conversation

@devmobasa

Copy link
Copy Markdown
Owner

Summary

  • request exclusive keyboard interactivity while a main layer surface is acquiring initial focus
  • restore normal toolbar policy only after a valid current-surface enter while preserving release precedence
  • reject stale enters using the surface identity, committed interactivity cache, and release state
  • preserve acquired state across ordinary keyboard teardown and cover lifecycle and policy transitions

Validation

  • ./tools/lint-and-test.sh under Rust 1.95
  • 10 focused policy, eligibility, and lifecycle tests
  • git diff --check

Manual compositor validation was not run because opening the overlay would affect foreground focus.

@devmobasa
devmobasa merged commit cd9feb5 into main Aug 30, 2026
2 checks passed
@devmobasa
devmobasa deleted the fix/layer-keyboard-focus-startup branch August 30, 2026 21:41
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.

1 participant