We need to release the cursor before closing a GameWindow, otherwise
subsequent GameWindows may fail to receive mouse events.
This commit is contained in:
Stefanos A. 2013-11-20 18:05:45 +01:00
parent 486130c01e
commit 75d4f3d07c

View file

@ -312,6 +312,7 @@ namespace OpenTK.Platform.SDL2
if (window.Handle != IntPtr.Zero) if (window.Handle != IntPtr.Zero)
{ {
CursorVisible = true;
lock (SDL.Sync) lock (SDL.Sync)
{ {
SDL.DelEventWatch(EventFilterDelegate, window.Handle); SDL.DelEventWatch(EventFilterDelegate, window.Handle);