From 372d6df64e767d93b48ad3cfaefb8d056f426fe0 Mon Sep 17 00:00:00 2001 From: Tom Poole Date: Mon, 8 Oct 2018 11:03:44 +0100 Subject: [PATCH] MacOS: Fixed an issue with transparent windows on Mojave --- .../juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm | 7 +++++++ 1 file changed, 7 insertions(+) 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())