diff --git a/GUI.NET/CursorManager.cs b/GUI.NET/CursorManager.cs index 97451d4f..4f1fd7b9 100644 --- a/GUI.NET/CursorManager.cs +++ b/GUI.NET/CursorManager.cs @@ -29,6 +29,12 @@ namespace Mesen.GUI _tmrCheckMouseMove.Start(); } + public static void StopTimers() + { + _tmrCheckMouseMove.Stop(); + _tmrHideMouse.Stop(); + } + private static void tmrCheckMouseMove_Tick(object sender, EventArgs e) { //Rarely the cursor becomes hidden despite leaving the window or moving diff --git a/GUI.NET/Forms/frmMain.cs b/GUI.NET/Forms/frmMain.cs index 7f1f536c..e3f70aa5 100644 --- a/GUI.NET/Forms/frmMain.cs +++ b/GUI.NET/Forms/frmMain.cs @@ -317,6 +317,7 @@ namespace Mesen.GUI.Forms } _shuttingDown = true; + CursorManager.StopTimers(); BaseForm.StopBackgroundTimer(); _logWindow?.Close(); _historyViewerWindow?.Close();