Browse Source

macOS: Fixed an issue with fullscreen windows on older versions of macOS

tags/2021-05-28
ed 6 years ago
parent
commit
e8caa05756
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm

+ 3
- 0
modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm 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];


Loading…
Cancel
Save