diff --git a/README.md b/README.md index 3fce2f8c2..5c31fb600 100644 --- a/README.md +++ b/README.md @@ -118,7 +118,7 @@ information on what to include when reporting a bug. ## Changelog -User-visible changes since the last release. +- [X11] Bugfix: Simultanous key presses were being ignored (#1112) ## Contact diff --git a/src/x11_window.c b/src/x11_window.c index 1b3f403fc..9feecdc82 100644 --- a/src/x11_window.c +++ b/src/x11_window.c @@ -1258,7 +1258,8 @@ static void processEvent(XEvent *event) // These have the same timestamp as the original event // Corresponding release events are filtered out // implicitly by the GLFW key repeat logic - if (window->x11.lastKeyTime < event->xkey.time) + if (window->x11.lastKeyTime < event->xkey.time || + (key != GLFW_KEY_UNKNOWN && window->keys[key] != GLFW_PRESS)) { if (keycode) _glfwInputKey(window, key, keycode, GLFW_PRESS, mods);