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

Tell the compositor to not repeat key events #293

Open
any1 opened this issue Feb 21, 2024 · 0 comments
Open

Tell the compositor to not repeat key events #293

any1 opened this issue Feb 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@any1
Copy link
Owner

any1 commented Feb 21, 2024

With network jitter, keys tend to be repeated on the server side due to intermittently delayed events. The best solution for this problem is to leave key repeat to the client and turn it off on the server.

We need to be able to communicate to the compositor that keys should not be repeated. The virtual keyboard protocol does not specify anything about repeated keys, so this will require some changes to the protocol, or perhaps even a new one.

The compositor also needs to communicate this to its clients using https://wayland.app/protocols/wayland#wl_keyboard:event:repeat_info

However, wl_keyboard doesn't have a repeat event. This needs to be added so that some applications such as games don't break. In the meantime, we can send an up & down event sequence for repeat.

See: raspberrypi/bookworm-feedback#213

@any1 any1 added the bug Something isn't working label Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant