mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-18 00:54:19 +00:00
macOS: Fixed an issue with fullscreen windows on older versions of macOS
This commit is contained in:
parent
eb3a90e081
commit
e8caa05756
1 changed files with 3 additions and 0 deletions
|
|
@ -2011,6 +2011,9 @@ private:
|
|||
|
||||
static void windowWillEnterFullScreen (id self, SEL, NSNotification*)
|
||||
{
|
||||
if (SystemStats::getOperatingSystemType() <= SystemStats::MacOSX_10_9)
|
||||
return;
|
||||
|
||||
if (auto* owner = getOwner (self))
|
||||
if (owner->hasNativeTitleBar() && (owner->getStyleFlags() & ComponentPeer::windowIsResizable) == 0)
|
||||
[owner->window setStyleMask: NSWindowStyleMaskBorderless];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue