Permalink
Browse files

[Linux] Fixed CursorVisible=false behavior

  • Loading branch information...
1 parent a30ec90 commit b23d06eb46054e5265eeefbcde273bca1bbc9d5f @thefiddler thefiddler committed Jul 18, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 Source/OpenTK/Platform/Linux/LinuxNativeWindow.cs
@@ -283,7 +283,7 @@ MouseState ProcessMouse(MouseState mouse)
if (!CursorVisible)
{
x = MathHelper.Clamp(mouse.X, Bounds.Left, Bounds.Right - 1);
- y = MathHelper.Clamp(mouse.X, Bounds.Top, Bounds.Bottom - 1);
+ y = MathHelper.Clamp(mouse.Y, Bounds.Top, Bounds.Bottom - 1);
if (x != mouse.X || y != mouse.Y)
{
Mouse.SetPosition(x, y);

0 comments on commit b23d06e

Please sign in to comment.