Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix key repeat detection on newer X servers
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+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); |
|
|
} |
|
|