mojira.dev
MC-122421

On Linux, simultaneously pressing two keys introduces a delay for one of the keys pressed

When pressing two or more keys on the same frame/tick, one of them will only be considered pressed after a delay specified by xset r rate. Pressing another key while this delay happens entirely drops the key to be pressed.

This breaks sprinting, walking diagonally, and jumping forward.

Workaround: set the XMODIFIERS environment variable to "@im=null", or "@im=xim".

Fix:
1) apply the patch from here to the 3.2.2 source tree, and compile it (thanks, #comment-608172)
2) add -Dorg.lwjgl.librarypath="/path/to/library/" to the launcher options (write the folder it's in, not the .so file itself)

If you do not want to bother with recompiling glfw, I have a precompiled binary for arch linux at https://i.selic.re/libglfw.so
(If a mod can confirm there's no malicious edits, that would be nice!)

Linked issues

Attachments

Comments 73

It might be you computer try checking somethings out and see if you can fix it cause it works fine for me.
EDIT:Then again i'm on Win. 10

Also cannot reproduce on Windows 10.

Can't seem to be able to reproduce this on windows 10 either, so I am assuming this is a linux-only bug. It is fixable by setting the key repeat settings to repeat all keys after 1ms, but that kinda breaks everything else on the system.

I can confirm that this happens on Linux, and not on Windows

63 more comments

I just tested 22w16a and the issue has been fixed.

Could someone please give me a tutorial so I can actually do this instead of using the vague instructions given to on glfw's github and whatnot..

This was indeed fixed in 22w16a but it still happens on 1.18.2
Running KDE Neon 5.24 with a 1000hz keyboard

 

This is still happening for me on version 1.18.2. I'm using Manjaro KDE.
I do not know the detailed specifics of my keyboard, but the model is Havit-KB389L.

@@unknown Nothing is wrong with your keyboard. With the faulty library now updated, this issue is fixed starting in 1.19. 🙂

Selicre

(Unassigned)

Community Consensus

Normal

Input

glfw, lwjgl

Minecraft 17w47b, Minecraft 18w01a, Minecraft 18w02a, Minecraft 1.13, Minecraft 1.13.1, ..., 1.16.5, 1.17.1, 1.18 Release Candidate 1, 1.18 Release Candidate 3, 1.18.1

22w16a

Retrieved