Skip to content

fix(lockscreen): reset the xkb state with the keymap and report a missing keymap - #45

Merged
mirkobrombin merged 1 commit into
singularityos-lab:mainfrom
ncz-os:pr/lock-keymap-failure-20261025
Nov 24, 2026
Merged

mirkobrombin merged 1 commit into
singularityos-lab:mainfrom
ncz-os:pr/lock-keymap-failure-20261025

Conversation

@perlowja

@perlowja perlowja commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

kb_keymap() unreferenced the old xkb_state but left the pointer set. It now resets it together with the keymap, logs each keymap failure, and shows "Keyboard unavailable" when a key arrives without a keymap instead of silently dropping it.

Generative AI assistance

AI assistance: disclosed

@perlowja

Copy link
Copy Markdown
Contributor Author

@mirkobrombin this still applies cleanly to current main; ready for review when you have time.

…sing keymap

kb_keymap() unreferenced the old xkb_state but left the pointer set. Reset it
together with the keymap. Each keymap failure path also returned silently,
which left a lock that drew normally but dropped every key; log the reason,
and show "Keyboard unavailable" when a key arrives without a keymap.

Assisted-by: Claude Code:claude-opus-5-5
AI-Scope: reset the xkb_state with the keymap, added failure logging in kb_keymap and the unavailable status in kb_key in lock_main.c.
@perlowja
perlowja force-pushed the pr/lock-keymap-failure-20261025 branch from 6aaf43f to ccf0083 Compare November 23, 2026 18:22
@perlowja perlowja changed the title fix(lockscreen): clear the freed xkb state and report a missing keymap fix(lockscreen): reset the xkb state with the keymap and report a missing keymap Nov 23, 2026
@perlowja

Copy link
Copy Markdown
Contributor Author

@mirkobrombin rebased onto the current main, CI is green. Ready for your review.

@mirkobrombin

Copy link
Copy Markdown
Member

Good catch on the dangling state. Merging.

@mirkobrombin
mirkobrombin merged commit 923c31b into singularityos-lab:main Nov 24, 2026
2 checks passed
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