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
(Wayland) Key repeat doesn't work when switching keys #2191
Comments
I cannot reproduce running kitty master under sway-1.2-5 (arch). Steps I tried:
Or alternately,
|
Could you give me some pointers on where the issue could be / how I could debug this issue on my own? It persists even on a default sway config and even on a different laptop and a brand new installation of arch |
You can run kitty with --debug-keyboard and see what events are printed Instructions for building kitty from source are here: |
Hi, I've observed this issue in kitty 0.19.1 running swaywm as well. I've noticed that it seems to occur around delay in either handling or receiving the key release event from the pressed key. Every time it happens, with --debug-keyboard under Wayland or XWayland I see a press event for the repeat key, then repeat events, then a press for the second key followed by the release for the first repeating key - and the second key does not repeat. This can happen even when I've made sure I've definitely physically released the first key and given a delay before pressing the second key, though it is time sensitive - the delay certainly needs to be under a second, but not much under, which is still a very noticeable latency. Please let me know if you'd like more information or the output of kitty --debug-keyboard for this. |
If you are getting an incorrect sequence of events, then the issue is in the compositor, kitty can only react to whatever events it receives. One could in theory hide this compositor bug in kitty, by not stopping repeats when the release event is for a different key than the repeats, this is what happens in the X11 backend, IIRC, but given that the bug is in the compositor, and this would just be a workaround, I am not particularly motivated to implement it. Patches are welcome. |
I had a minute, so I implemented it. |
Thanks! I really appreciate the effort and dedication you put into maintaining your projects. Both projects don't seem like they're trivial in any sense of the word and are beautifully architected monolithic code bases. It's something I aspire towards some day. I really hoped to find one of your projects in https://aosabook.org/en/index.html so that I could learn more but was disappointed. Maybe you could think about writing a book (or a chapter for the above book) so that more people can learn your development philosophy? Disclaimer: I have absolutely nothing to do with the creators of the book and am not marketing in any way. It just seemed a natural place for it to be |
You are most welcome :) As for writing up my development philosophy for aosa, sure I can do that, if the publishers of the book are interested. It's been a while since I have written anything long form, might be fun. I think the last time was a chapter in a book on quantum computation. |
Mind telling me a bit more about the book so I can give it a glance? I've always been interested in the topic. Couldn't quite get the activation energy (hehe) to actually sit down and understand the concepts. (I do understand that it is veering off topic and GitHub discussions are probably not the best place for this) |
https://www.amazon.in/Quantum-Error-Correction-Daniel-Lidar/dp/0521897874 The book isnt really suitable as an introductory read. It's a fairly |
This issue still appearers for me, for examle cursor right is not working sometimes. I'm not sure what is the reason. |
Hi
I've looked at both #120 and #292 and the problem is similar but not quite like these ones.
This isn't specific to any particular key.
Let's say I press
j
(or any other key) for a while (say 3 seconds), the keys begin repeatingNow when I switch to another key, say
k
It stops at a single
k
however long I press the key.If I run kitty with
env WAYLAND_DISPLAY= kitty
(under XWayland) then the problem disappears and I getas expected.
I'm using
kitty
under Wayland throughglfw-wayland
(SwayWM if that is relevant)Output of
kitty --debug-config
The text was updated successfully, but these errors were encountered: