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:
0c4081f
)
[Mac] CursorVisible should only apply when changed
author
thefiddler
<stapostol@gmail.com>
Tue, 22 Jul 2014 19:02:33 +0000
(21:02 +0200)
committer
thefiddler
<stapostol@gmail.com>
Tue, 22 Jul 2014 19:02:33 +0000
(21:02 +0200)
This fixes an issue where `NativeWindow.Dispose()` would move the mouse
cursor.
Source/OpenTK/Platform/MacOS/CocoaNativeWindow.cs
patch
|
blob
|
history
diff --git
a/Source/OpenTK/Platform/MacOS/CocoaNativeWindow.cs
b/Source/OpenTK/Platform/MacOS/CocoaNativeWindow.cs
index
d4d6b48
..
db0e314
100644
(file)
--- a/
Source/OpenTK/Platform/MacOS/CocoaNativeWindow.cs
+++ b/
Source/OpenTK/Platform/MacOS/CocoaNativeWindow.cs
@@
-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;
}
}