diff --git a/pixelgl/window.go b/pixelgl/window.go index af1f1a7..693b4b0 100644 --- a/pixelgl/window.go +++ b/pixelgl/window.go @@ -405,10 +405,10 @@ func (w *Window) SetCursorVisible(visible bool) { // SetCursorDisabled hides the cursor and provides unlimited virtual cursor movement // make cursor visible using SetCursorVisible func (w *Window) SetCursorDisabled() { - w.cursorVisible = false - mainthread.Call(func() { - w.window.SetInputMode(glfw.CursorMode, glfw.CursorDisabled) - }) + w.cursorVisible = false + mainthread.Call(func() { + w.window.SetInputMode(glfw.CursorMode, glfw.CursorDisabled) + }) } // CursorVisible returns the visibility status of the mouse cursor. diff --git a/test b/test new file mode 100644 index 0000000..d73643a --- /dev/null +++ b/test @@ -0,0 +1 @@ +some test file diff --git a/test1 b/test1 new file mode 100644 index 0000000..ce7af2f --- /dev/null +++ b/test1 @@ -0,0 +1,2 @@ +some test file +test file with edit \ No newline at end of file