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

Workaround winit modifiers issue #249

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sodiboo
Copy link
Contributor

@sodiboo sodiboo commented Mar 6, 2024

This fixes an issue described in the code comment. It is not a "permanent" fix, but it works just fine for me. The underlying issue is either in xkbcommon, smithay, or the niri compositor (i.e. not the winit backend, but the "main" one running in tty) depending on who exactly you want to blame (xkbcommon for entering a weird irreversible state, smithay for not handling this properly, or niri for not sending the correct events to its client).

@sodiboo sodiboo mentioned this pull request Mar 6, 2024
@kchibisov
Copy link
Contributor

The bug is in smithay and should be fixed there. In particular, no one will ever guarantee to send release events, especially given that it's wayland and you're not aware of things like that.

@YaLTeR
Copy link
Owner

YaLTeR commented Mar 6, 2024

@kchibisov what do you think?

@kchibisov
Copy link
Contributor

@YaLTeR see above.

@YaLTeR
Copy link
Owner

YaLTeR commented Mar 6, 2024

I too think it's better to fix in Smithay. I haven't looked deep into the winit backend code there, maybe the fix should be similarly not that difficult? It should also fix some issues with this workaround, like until you press the stuck modifier again it will get added to keys, and also it will send an extra release if you press the same modifier on two keyboards on TTY.

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

3 participants