diff --git a/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm b/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm index ddda7a6b89..63da09ce9c 100644 --- a/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm +++ b/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm @@ -116,7 +116,14 @@ public: #else [window setDelegate: window]; #endif + [window setOpaque: component.isOpaque()]; + + #if defined (MAC_OS_X_VERSION_10_14) + if (! [window isOpaque]) + [window setBackgroundColor: [NSColor clearColor]]; + #endif + [window setHasShadow: ((windowStyleFlags & windowHasDropShadow) != 0)]; if (component.isAlwaysOnTop())