Keyboard input sometimes not working #2

Closed
opened 2026-04-06 19:46:26 +02:00 by nevaforget · 0 comments
Owner

Occasionally after startup, keyboard input does not register in the password entry. Wildly typing sometimes resolves it, suggesting a timing/race condition rather than a permanent grab failure.

Moongreet uses gtk4_layer_shell::KeyboardMode::Exclusive for keyboard grab. The issue likely stems from a race condition where the greeter window maps before the compositor confirms the keyboard grab.

To investigate:

  • Whether adding a delayed grab_focus() after window map resolves the issue
  • Whether the layer-shell keyboard mode is confirmed before the password entry expects input
  • Whether this correlates with specific compositor startup timing
Occasionally after startup, keyboard input does not register in the password entry. Wildly typing sometimes resolves it, suggesting a timing/race condition rather than a permanent grab failure. Moongreet uses `gtk4_layer_shell::KeyboardMode::Exclusive` for keyboard grab. The issue likely stems from a race condition where the greeter window maps before the compositor confirms the keyboard grab. **To investigate:** - Whether adding a delayed `grab_focus()` after window map resolves the issue - Whether the layer-shell keyboard mode is confirmed before the password entry expects input - Whether this correlates with specific compositor startup timing
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nevaforget/greetd-moongreet#2
No description provided.