mojira.dev

bczhc

Assigned

No issues.

Reported

No issues.

Comments

Bump. Also reproducible in Minecraft 1.20.4 and 24w06a.

I recompiled and installed glfw from https://github.com/glfw/glfw/pull/2130, with this patch:

diff --git a/src/x11_window.c b/src/x11_window.c
index 12ddca94..57cd7332 100644
— a/src/x11_window.c
+++ b/src/x11_window.c
@@ -1463,6 +1463,8 @@ static void processEvent(XEvent *event)
                 Time diff = event->xkey.time - window->x11.keyPressTimes[keycode];
                 if (diff == event->xkey.time || (diff > 0 && diff < ((Time)1 << 31)))
                 {
+                    if (filtered) return;
+
                     if (keycode)
                         _glfwInputKey(window, key, keycode, GLFW_PRESS, mods);

as addressed in https://github.com/glfw/glfw/pull/2130#issuecomment-1153754529.

Then, enable "Use System GLFW" in the Minecraft launcher (like HMCL), issue now can be resolved and everything works perfectly!