[vid] Disable X11 repeat control

For now, at least. It is a royal pain in the neck when doing a lot of
development work and I'm not sure it's worthwhile on modern CPUs.
This commit is contained in:
Bill Currie 2021-01-30 14:49:42 +09:00
parent cad1eb42fd
commit f523f6ba80

View file

@ -599,11 +599,11 @@ XLateKey (XKeyEvent * ev, int *k, int *u)
static void static void
x11_keydest_callback (keydest_t key_dest) x11_keydest_callback (keydest_t key_dest)
{ {
if (key_dest == key_game) { // if (key_dest == key_game) {
XAutoRepeatOff (x_disp); // XAutoRepeatOff (x_disp);
} else { // } else {
XAutoRepeatOn (x_disp); // XAutoRepeatOn (x_disp);
} // }
} }
static void static void
@ -792,7 +792,7 @@ IN_LL_Shutdown (void)
Sys_MaskPrintf (SYS_VID, "IN_LL_Shutdown\n"); Sys_MaskPrintf (SYS_VID, "IN_LL_Shutdown\n");
in_mouse_avail = 0; in_mouse_avail = 0;
if (x_disp) { if (x_disp) {
XAutoRepeatOn (x_disp); // XAutoRepeatOn (x_disp);
dga_off (); dga_off ();
} }
if (in_mouse_accel && !in_mouse_accel->int_val) if (in_mouse_accel && !in_mouse_accel->int_val)