projects
/
platform
/
core
/
csapi
/
opentk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a30ec90
)
[Linux] Fixed CursorVisible=false behavior
author
thefiddler
<stapostol@gmail.com>
Fri, 18 Jul 2014 07:22:12 +0000
(09:22 +0200)
committer
thefiddler
<stapostol@gmail.com>
Fri, 18 Jul 2014 07:22:12 +0000
(09:22 +0200)
Source/OpenTK/Platform/Linux/LinuxNativeWindow.cs
patch
|
blob
|
history
diff --git
a/Source/OpenTK/Platform/Linux/LinuxNativeWindow.cs
b/Source/OpenTK/Platform/Linux/LinuxNativeWindow.cs
index
8391f53
..
f3aebbe
100644
(file)
--- 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);