Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[Linux] Fixed CursorVisible=false behavior

  • Loading branch information...
commit b23d06eb46054e5265eeefbcde273bca1bbc9d5f 1 parent a30ec90
@thefiddler thefiddler authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Source/OpenTK/Platform/Linux/LinuxNativeWindow.cs
View
2  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);
Please sign in to comment.
Something went wrong with that request. Please try again.