mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-07 13:40:41 +00:00
[Linux] Fixed CursorVisible=false behavior
This commit is contained in:
parent
a30ec9003b
commit
b23d06eb46
|
@ -283,7 +283,7 @@ namespace OpenTK.Platform.Linux
|
||||||
if (!CursorVisible)
|
if (!CursorVisible)
|
||||||
{
|
{
|
||||||
x = MathHelper.Clamp(mouse.X, Bounds.Left, Bounds.Right - 1);
|
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)
|
if (x != mouse.X || y != mouse.Y)
|
||||||
{
|
{
|
||||||
Mouse.SetPosition(x, y);
|
Mouse.SetPosition(x, y);
|
||||||
|
|
Loading…
Reference in a new issue