diff --git a/Source/OpenTK/Platform/MacOS/CarbonGLNative.cs b/Source/OpenTK/Platform/MacOS/CarbonGLNative.cs index df28debc..ee8a247a 100644 --- a/Source/OpenTK/Platform/MacOS/CarbonGLNative.cs +++ b/Source/OpenTK/Platform/MacOS/CarbonGLNative.cs @@ -563,6 +563,9 @@ namespace OpenTK.Platform.MacOS private void CheckEnterLeaveEvents(IntPtr eventWindowRef, Point pt) { + if (window == null) + return; + bool thisIn = eventWindowRef == window.WindowRef; if (pt.Y < 0)