mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 19:55:29 +00:00
Fixed #5
We need to release the cursor before closing a GameWindow, otherwise subsequent GameWindows may fail to receive mouse events.
This commit is contained in:
parent
486130c01e
commit
75d4f3d07c
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue