From 58cd07ec2aaa6bc13968d6b309c86f97625433e3 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Sun, 4 May 2008 18:23:42 +0000 Subject: [PATCH] Fixed mouse motion events on Linux. --- Source/OpenTK/Platform/X11/X11Input.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/OpenTK/Platform/X11/X11Input.cs b/Source/OpenTK/Platform/X11/X11Input.cs index bc020bd5..5c4b37de 100644 --- a/Source/OpenTK/Platform/X11/X11Input.cs +++ b/Source/OpenTK/Platform/X11/X11Input.cs @@ -190,7 +190,7 @@ namespace OpenTK.Platform.X11 break; case XEventName.MotionNotify: - mouse.Position = new System.Drawing.Point(mouse.X, mouse.Y); + mouse.Position = new System.Drawing.Point(e.MotionEvent.x, e.MotionEvent.y); break; } }