Added call to XAutoRepeatOff() to disable keyboard autorepeat on X11Input.

This commit is contained in:
the_fiddler 2009-05-30 18:15:13 +00:00
parent 88f1ce081f
commit 9c98321c76
2 changed files with 31 additions and 28 deletions

View file

@ -425,7 +425,8 @@ namespace OpenTK.Platform.X11
[DllImport("libX11")]
public static extern void XSync(Display display, bool discard);
[DllImport("libX11")]
public static extern void XAutoRepeatOff(IntPtr display);
public static void SendNetWMMessage(X11WindowInfo window, IntPtr message_type, IntPtr l0, IntPtr l1, IntPtr l2)
{

View file

@ -78,6 +78,8 @@ namespace OpenTK.Platform.X11
keyboard.DeviceID = IntPtr.Zero;
dummy_keyboard_list.Add(keyboard);
Functions.XAutoRepeatOff(window.Display);
Debug.Unindent();
}