From c8f8f813022ea1f4027c72de787d3437309b1b38 Mon Sep 17 00:00:00 2001 From: hogliux Date: Fri, 7 Apr 2017 12:13:00 +0100 Subject: [PATCH] Removed activateIgnoringOtherApps call in macOS shutdown code to avoid JUCE stealing keyboard focus from other apps --- modules/juce_events/native/juce_mac_MessageManager.mm | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/juce_events/native/juce_mac_MessageManager.mm b/modules/juce_events/native/juce_mac_MessageManager.mm index a0f63cc506..e5c6346042 100644 --- a/modules/juce_events/native/juce_mac_MessageManager.mm +++ b/modules/juce_events/native/juce_mac_MessageManager.mm @@ -261,7 +261,6 @@ void MessageManager::runDispatchLoop() static void shutdownNSApp() { [NSApp stop: nil]; - [NSApp activateIgnoringOtherApps: YES]; // (if the app is inactive, it sits there and ignores the quit request until the next time it gets activated) [NSEvent startPeriodicEventsAfterDelay: 0 withPeriod: 0.1]; }