# HG changeset patch # User Sam Lantinga # Date 988585187 0 # Node ID 34d956b20f75e112e53dbe64ba24c5e2f0f55a56 # Parent 7b94b637934157876327fe1de6a6f9bfdf4bef0a Fix key repeat detection on newer X servers diff -r 7b94b6379341 -r 34d956b20f75 src/video/x11/SDL_x11events.c --- a/src/video/x11/SDL_x11events.c Sat Apr 28 18:57:18 2001 +0000 +++ b/src/video/x11/SDL_x11events.c Sun Apr 29 22:59:47 2001 +0000 @@ -73,7 +73,7 @@ XPeekEvent(display, &peekevent); if ( (peekevent.type == KeyPress) && (peekevent.xkey.keycode == event->xkey.keycode) && - (peekevent.xkey.time == event->xkey.time) ) { + ((peekevent.xkey.time-event->xkey.time) < 2) ) { repeated = 1; XNextEvent(display, &peekevent); }