Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move indicators out of display driver, generalized overlays #9

Merged
merged 5 commits into from
Jan 19, 2024

Conversation

ardangelo
Copy link
Owner

The original key modifier overlays were implemented via ioctl calls that modified global state in the display driver, with hardcoded indicator icons. Notably, this caused crashes when modifier keys were pressed while entering or exiting X11. To fix this, and support a wider range of screen overlays, I changed the ioctl system to use Linux's DRM display ioctl subsystem, and expanded the overlay interface. Now, the keyboard driver is responsible for setting its own modifier overlays.

With the new screen overlay system, it is now possible to implement the symbol key overlay, to display which symbols are produced by a given Sym+key combination. A utility to parse the X11 keymap, render the symbols, and display them using the new screen overlay system is triggered by holding the Sym key.

@ardangelo ardangelo merged commit 682a2c4 into master Jan 19, 2024
@ardangelo ardangelo deleted the indicators branch January 19, 2024 02:04
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.

None yet

1 participant