Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-122421

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 22w16a
    • Minecraft 17w47b, Minecraft 18w01a, Minecraft 18w02a, Minecraft 1.13, Minecraft 1.13.1, Minecraft 1.14, 1.14.4, 1.15 Pre-release 1, 1.15, 1.15.1 Pre-release 1, 1.15.2, 20w08a, 1.16.2, 1.16.3, 1.16.4, 20w51a, 1.16.5, 1.17.1, 1.18 Release Candidate 1, 1.18 Release Candidate 3, 1.18.1
    • Linux
    • Community Consensus
    • Input
    • Normal

      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!)

        1. output.mp4
          9.57 MB
        2. keystroke-bug.mp4
          2.05 MB

            Unassigned Unassigned
            hyperpony Selicre
            Votes:
            67 Vote for this issue
            Watchers:
            48 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: