mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-03-29 18:06:52 +00:00
Replaced XAutoRepeatOff by XkbSetDetectableAutoRepeat, because the former must be reset before the program exits (and this is not always possible).
This commit is contained in:
parent
407d6fdf08
commit
0498b3e92a
|
@ -78,7 +78,12 @@ namespace OpenTK.Platform.X11
|
||||||
keyboard.DeviceID = IntPtr.Zero;
|
keyboard.DeviceID = IntPtr.Zero;
|
||||||
dummy_keyboard_list.Add(keyboard);
|
dummy_keyboard_list.Add(keyboard);
|
||||||
|
|
||||||
Functions.XAutoRepeatOff(window.Display);
|
// Request that auto-repeat is only set on devices that support it physically.
|
||||||
|
// This typically means that it's turned off for keyboards (which is what we want).
|
||||||
|
// We prefer this method over XAutoRepeatOff/On, because the latter needs to
|
||||||
|
// be reset before the program exits.
|
||||||
|
bool supported;
|
||||||
|
Functions.XkbSetDetectableAutoRepeat(window.Display, true, out supported);
|
||||||
|
|
||||||
Debug.Unindent();
|
Debug.Unindent();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue