From aa01c9832240476e82fa11d42569e670e94e115d Mon Sep 17 00:00:00 2001 From: theGeekPirate Date: Fri, 27 Oct 2017 13:24:01 -0700 Subject: [PATCH] Set w.cursorVisible Properly --- pixelgl/window.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pixelgl/window.go b/pixelgl/window.go index f05c0db..ae0a086 100644 --- a/pixelgl/window.go +++ b/pixelgl/window.go @@ -320,7 +320,7 @@ func (w *Window) VSync() bool { // SetCursorDisabled both hides the cursor, as well as limits cursor movement to the Window client area. func (w *Window) SetCursorDisabled(disabled bool) { - w.cursorVisible = false + w.cursorVisible = !disabled mainthread.Call(func() { if disabled { w.window.SetInputMode(glfw.CursorMode, glfw.CursorDisabled)