mirror of
https://github.com/yawut/SDL.git
synced 2026-10-01 20:56:44 -05:00
Fix key repeat detection on newer X servers
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user