1
0
Fork 0
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:
ed 2019-05-21 16:44:20 +01:00
parent eb3a90e081
commit e8caa05756

View file

@ -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];