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:
99ff3d2
)
[X11] Fix CursorVisible
author
Fraser Waters
<frassle@gmail.com>
Fri, 21 Aug 2015 22:58:00 +0000
(23:58 +0100)
committer
Fraser Waters
<frassle@gmail.com>
Fri, 21 Aug 2015 22:58:00 +0000
(23:58 +0100)
Change X11 CursorVisible to only execute if a change is actually needed,
that is if we're going from visible to not visible or vice versa.
Fixes #281
Source/OpenTK/Platform/X11/X11GLNative.cs
patch
|
blob
|
history
diff --git
a/Source/OpenTK/Platform/X11/X11GLNative.cs
b/Source/OpenTK/Platform/X11/X11GLNative.cs
index
5b4e38f
..
46099c3
100644
(file)
--- a/
Source/OpenTK/Platform/X11/X11GLNative.cs
+++ b/
Source/OpenTK/Platform/X11/X11GLNative.cs
@@
-1480,7
+1480,7
@@
namespace OpenTK.Platform.X11
get { return cursor_visible; }
set
{
- if (value)
+ if (value
&& !cursor_visible
)
{
using (new XLock(window.Display))
{
@@
-1495,7
+1495,7
@@
namespace OpenTK.Platform.X11
cursor_visible = true;
}
}
- else
+ else
if(!value && cursor_visible)
{
using (new XLock(window.Display))
{