Browse Source

Minor tweaks to Component and OSX fullscreen behaviour.

tags/2021-05-28
jules 13 years ago
parent
commit
dcb8351844
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      modules/juce_gui_basics/components/juce_Component.cpp
  2. +1
    -0
      modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm

+ 1
- 1
modules/juce_gui_basics/components/juce_Component.cpp View File

@@ -622,7 +622,7 @@ void Component::removeFromDesktop()
{ {
// if component methods are being called from threads other than the message // 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. // 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) if (flags.hasHeavyweightPeerFlag)
{ {


+ 1
- 0
modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm View File

@@ -1798,6 +1798,7 @@ void Desktop::setKioskComponent (Component* kioskModeComponent, bool enableOrDis
[NSApp setPresentationOptions: (allowMenusAndBars ? (NSApplicationPresentationAutoHideDock | NSApplicationPresentationAutoHideMenuBar) [NSApp setPresentationOptions: (allowMenusAndBars ? (NSApplicationPresentationAutoHideDock | NSApplicationPresentationAutoHideMenuBar)
: (NSApplicationPresentationHideDock | NSApplicationPresentationHideMenuBar))]; : (NSApplicationPresentationHideDock | NSApplicationPresentationHideMenuBar))];
kioskModeComponent->setBounds (Desktop::getInstance().getMainMonitorArea (false)); kioskModeComponent->setBounds (Desktop::getInstance().getMainMonitorArea (false));
peer->becomeKeyWindow();
} }
else else
{ {


Loading…
Cancel
Save