From dcb8351844d925601ca3c5fa2856e6add20355c3 Mon Sep 17 00:00:00 2001 From: jules Date: Mon, 19 Mar 2012 21:49:52 +0000 Subject: [PATCH] Minor tweaks to Component and OSX fullscreen behaviour. --- modules/juce_gui_basics/components/juce_Component.cpp | 2 +- modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/juce_gui_basics/components/juce_Component.cpp b/modules/juce_gui_basics/components/juce_Component.cpp index e1a73763aa..7304f8a424 100644 --- a/modules/juce_gui_basics/components/juce_Component.cpp +++ b/modules/juce_gui_basics/components/juce_Component.cpp @@ -622,7 +622,7 @@ void Component::removeFromDesktop() { // if component methods are being called from threads other than the message // thread, you'll need to use a MessageManagerLock object to make sure it's thread-safe. - CHECK_MESSAGE_MANAGER_IS_LOCKED + CHECK_MESSAGE_MANAGER_IS_LOCKED_OR_OFFSCREEN if (flags.hasHeavyweightPeerFlag) { diff --git a/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm b/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm index fbc6fa1abd..1639a7cbc5 100644 --- a/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm +++ b/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm @@ -1798,6 +1798,7 @@ void Desktop::setKioskComponent (Component* kioskModeComponent, bool enableOrDis [NSApp setPresentationOptions: (allowMenusAndBars ? (NSApplicationPresentationAutoHideDock | NSApplicationPresentationAutoHideMenuBar) : (NSApplicationPresentationHideDock | NSApplicationPresentationHideMenuBar))]; kioskModeComponent->setBounds (Desktop::getInstance().getMainMonitorArea (false)); + peer->becomeKeyWindow(); } else {