mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fix for mac kiosk modes.
This commit is contained in:
parent
f5ed9621cd
commit
6790239ef2
2 changed files with 4 additions and 2 deletions
|
|
@ -272485,7 +272485,8 @@ void juce_setKioskComponent (Component* kioskModeComponent, bool enableOrDisable
|
|||
#if defined (MAC_OS_X_VERSION_10_6) && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6
|
||||
if (enableOrDisable)
|
||||
{
|
||||
[NSApp setPresentationOptions: NSApplicationPresentationAutoHideDock | NSApplicationPresentationAutoHideMenuBar];
|
||||
[NSApp setPresentationOptions: (allowMenusAndBars ? (NSApplicationPresentationAutoHideDock | NSApplicationPresentationAutoHideMenuBar)
|
||||
: (NSApplicationPresentationHideDock | NSApplicationPresentationHideMenuBar))];
|
||||
kioskModeComponent->setBounds (Desktop::getInstance().getMainMonitorArea (false));
|
||||
}
|
||||
else
|
||||
|
|
|
|||
|
|
@ -1662,7 +1662,8 @@ void juce_setKioskComponent (Component* kioskModeComponent, bool enableOrDisable
|
|||
#if defined (MAC_OS_X_VERSION_10_6) && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6
|
||||
if (enableOrDisable)
|
||||
{
|
||||
[NSApp setPresentationOptions: NSApplicationPresentationAutoHideDock | NSApplicationPresentationAutoHideMenuBar];
|
||||
[NSApp setPresentationOptions: (allowMenusAndBars ? (NSApplicationPresentationAutoHideDock | NSApplicationPresentationAutoHideMenuBar)
|
||||
: (NSApplicationPresentationHideDock | NSApplicationPresentationHideMenuBar))];
|
||||
kioskModeComponent->setBounds (Desktop::getInstance().getMainMonitorArea (false));
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue