Skip to content
Permalink
Browse files

Fix key repeat detection on newer X servers

  • Loading branch information
Sam Lantinga committed Apr 29, 2001
1 parent 43c2bdc commit a5903f4d98fbddd6766891828b697999b37e99df
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/video/x11/SDL_x11events.c
@@ -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);
}

0 comments on commit a5903f4

Please sign in to comment.