1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-20 01:14:20 +00:00

MacOS: Fixed an issue with transparent windows on Mojave

This commit is contained in:
Tom Poole 2018-10-08 11:03:44 +01:00
parent a44d3d7bb2
commit 372d6df64e

View file

@ -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())