Skip to content

Commit

Permalink
Fix key repeat detection on newer X servers
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Lantinga committed Apr 29, 2001
1 parent 43c2bdc commit a5903f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/x11/SDL_x11events.c
Expand Up @@ -73,7 +73,7 @@ static int X11_KeyRepeat(Display *display, XEvent *event)
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);
}
Expand Down

0 comments on commit a5903f4

Please sign in to comment.