From 75d4f3d07c69f2747d6e14fe6834ac8675c36199 Mon Sep 17 00:00:00 2001 From: "Stefanos A." Date: Wed, 20 Nov 2013 18:05:45 +0100 Subject: [PATCH] Fixed #5 We need to release the cursor before closing a GameWindow, otherwise subsequent GameWindows may fail to receive mouse events. --- Source/OpenTK/Platform/SDL2/Sdl2NativeWindow.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/OpenTK/Platform/SDL2/Sdl2NativeWindow.cs b/Source/OpenTK/Platform/SDL2/Sdl2NativeWindow.cs index e28e2372..e8715f66 100644 --- a/Source/OpenTK/Platform/SDL2/Sdl2NativeWindow.cs +++ b/Source/OpenTK/Platform/SDL2/Sdl2NativeWindow.cs @@ -312,6 +312,7 @@ namespace OpenTK.Platform.SDL2 if (window.Handle != IntPtr.Zero) { + CursorVisible = true; lock (SDL.Sync) { SDL.DelEventWatch(EventFilterDelegate, window.Handle);