1 --- XFree86-Servers-3.3.6/xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_io.c~ 2000-01-08 19:26:25.000000000 +0100
2 +++ XFree86-Servers-3.3.6/xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_io.c 2004-09-01 02:11:22.413163720 +0200
4 struct kbd_repeat kbdrep_s;
6 /* don't change, just test */
8 + kbdrep_s.period = -1;
10 if (ioctl( 0, KDKBDREP, &kbdrep_s )) {
15 if (rate == 0) /* switch repeat off */
17 + kbdrep_s.period = 0;
19 - kbdrep_s.rate = 10000 / rate; /* convert cps to msec */
20 - if (kbdrep_s.rate < 1)
22 + kbdrep_s.period = 10000 / rate; /* convert cps to msec */
23 + if (kbdrep_s.period < 1)
24 + kbdrep_s.period = 1;
25 kbdrep_s.delay = delay;
26 if (kbdrep_s.delay < 1)