> Hmm, the code certainly looks correct, it uses the address of an automatic > Bool variable for the last argument. > > Martin You mean the code how SDL2 is using calling XkbSetDetectableAutoRepeat ()? Does it mean the issue is in libX11 itself? Best regards Elias