mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-10 23:25:27 +00:00
[Mac] CursorVisible should only apply when changed
This fixes an issue where `NativeWindow.Dispose()` would move the mouse cursor.
This commit is contained in:
parent
0c4081f6ef
commit
9d6b6891e6
|
@ -1000,15 +1000,15 @@ namespace OpenTK.Platform.MacOS
|
|||
get { return cursorVisible; }
|
||||
set
|
||||
{
|
||||
cursorVisible = value;
|
||||
if (value)
|
||||
if (value && !cursorVisible)
|
||||
{
|
||||
SetCursorVisible(true);
|
||||
}
|
||||
else
|
||||
else if (!value && cursorVisible)
|
||||
{
|
||||
SetCursorVisible(false);
|
||||
}
|
||||
cursorVisible = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue