GLFW_REPEAT not triggering when glfwSwapBuffers() is repeatedly called

I am using Ubuntu 25.10 with wayland and am having trouble getting the key callback to receive a GLFW_REPEAT action. I have confirmed the problem with Ubuntu’s GLFW 3.4 package, compiling 3.4 from source, and GLFW git. I eventually discovered that test/events.c shows the repeat events and does not have the same problem. However, I couldn’t get examples/triangle-opengl.c to print a message after modifying it’s key callback to print a message when action==GLFW_REPEAT.

After trying to figure out the difference between the two programs, I learned how to make tests/events.c have the problem: Call glfwSwapBuffers() in the loop immediately above the glfwWindowShouldClose() if statement.

Is this a GLFW bug or some issue perhaps caused by my environment?

I recently modified the GLFW code handling forGLFW_REPEAT. Whilst this may not fix your issue could you test the latest code from Github and let me know here?

Yes, it happens with GLFW git as well. I’ve confirmed it on two Ubuntu 25.10 machines, both with nvidia cards.

Thanks, if you able to report this as a bug on Github that would be great, otherwise I will.

Hopefully I’ll be able to replicate this with Ubuntu, though I don’t have a NVIDIA GPU with me at the moment (hopefully this shouldn’t matter).

Do you know if you are running with X11 or Wayland platform, and does the issue occur on the other? See the runtime platform selection docs for more info on this.

I added a couple of notes about two ways I am able to get the repeated keys to get sent to the callback: Force X11 platform or use the nouveau driver.

1 Like