From: thefiddler Date: Fri, 18 Jul 2014 07:22:12 +0000 (+0200) Subject: [Linux] Fixed CursorVisible=false behavior X-Git-Tag: 2.0-0~112^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b23d06eb46054e5265eeefbcde273bca1bbc9d5f;p=platform%2Fcore%2Fcsapi%2Fopentk.git [Linux] Fixed CursorVisible=false behavior --- diff --git a/Source/OpenTK/Platform/Linux/LinuxNativeWindow.cs b/Source/OpenTK/Platform/Linux/LinuxNativeWindow.cs index 8391f53..f3aebbe 100644 --- a/Source/OpenTK/Platform/Linux/LinuxNativeWindow.cs +++ b/Source/OpenTK/Platform/Linux/LinuxNativeWindow.cs @@ -283,7 +283,7 @@ namespace OpenTK.Platform.Linux 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);