[X11] Fixed OnMouseMove being called without mouse movement
authorthefiddler <stapostol@gmail.com>
Fri, 18 Jul 2014 15:02:47 +0000 (17:02 +0200)
committerthefiddler <stapostol@gmail.com>
Fri, 18 Jul 2014 15:02:47 +0000 (17:02 +0200)
Source/OpenTK/Platform/X11/X11GLNative.cs

index 1971501..c1de141 100644 (file)
@@ -892,7 +892,7 @@ namespace OpenTK.Platform.X11
                         int x = e.MotionEvent.x;
                         int y = e.MotionEvent.y;
 
-                        if (x != 0 || y != 0)
+                        if (x != MouseState.X || y != MouseState.Y)
                         {
                             OnMouseMove(
                                 MathHelper.Clamp(x, 0, Width),