Skip to content

Commit

Permalink
[X11] Fixed OnMouseMove being called without mouse movement
Browse files Browse the repository at this point in the history
  • Loading branch information
thefiddler committed Jul 18, 2014
1 parent 17aa805 commit 786273d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/OpenTK/Platform/X11/X11GLNative.cs
Expand Up @@ -892,7 +892,7 @@ public override void ProcessEvents()
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),
Expand Down

0 comments on commit 786273d

Please sign in to comment.