diff --git a/src/OpenTK/Platform/MacOS/Cocoa/Cocoa.cs b/src/OpenTK/Platform/MacOS/Cocoa/Cocoa.cs index 982f1a23..459117c1 100644 --- a/src/OpenTK/Platform/MacOS/Cocoa/Cocoa.cs +++ b/src/OpenTK/Platform/MacOS/Cocoa/Cocoa.cs @@ -100,6 +100,9 @@ namespace OpenTK.Platform.MacOS [DllImport(LibObjC, EntryPoint="objc_msgSend")] public extern static void SendVoid(IntPtr receiver, IntPtr selector, uint uint1); + [DllImport(LibObjC, EntryPoint="objc_msgSend")] + public extern static void SendVoid(IntPtr receiver, IntPtr selector, uint uint1, IntPtr intPtr1); + [DllImport(LibObjC, EntryPoint="objc_msgSend")] public extern static void SendVoid(IntPtr receiver, IntPtr selector, IntPtr intPtr1); diff --git a/src/OpenTK/Platform/MacOS/Cocoa/NSApplication.cs b/src/OpenTK/Platform/MacOS/Cocoa/NSApplication.cs index 6f4bbf01..ba8f4683 100644 --- a/src/OpenTK/Platform/MacOS/Cocoa/NSApplication.cs +++ b/src/OpenTK/Platform/MacOS/Cocoa/NSApplication.cs @@ -57,6 +57,7 @@ namespace OpenTK.Platform.MacOS // Setup the application Cocoa.SendBool(Handle, Selector.Get("setActivationPolicy:"), (int)NSApplicationActivationPolicy.Regular); + Cocoa.SendVoid(Handle, Selector.Get("discardEventsMatchingMask:beforeEvent:"), uint.MaxValue, IntPtr.Zero); Cocoa.SendVoid(Handle, Selector.Get("activateIgnoringOtherApps:"), true); if (Cocoa.SendIntPtr(Handle, Selector.Get("mainMenu")) == IntPtr.Zero)