Browse Source

macOS: Only apply recent gl fix to shared windows and not to all of them

tags/2021-05-28
hogliux 7 years ago
parent
commit
aec8c367fe
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm

+ 1
- 1
modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm View File

@@ -702,7 +702,7 @@ public:
void redirectWillMoveToWindow (NSWindow* newWindow)
{
if ([view window] == window && newWindow == nullptr)
if (isSharedWindow && [view window] == window && newWindow == nullptr)
{
if (auto* comp = safeComponent.get())
comp->setVisible (false);


Loading…
Cancel
Save