diff --git a/modules/juce_audio_plugin_client/RTAS/juce_RTAS_MacUtilities.mm b/modules/juce_audio_plugin_client/RTAS/juce_RTAS_MacUtilities.mm index bdfd273079..4fb19efad5 100644 --- a/modules/juce_audio_plugin_client/RTAS/juce_RTAS_MacUtilities.mm +++ b/modules/juce_audio_plugin_client/RTAS/juce_RTAS_MacUtilities.mm @@ -52,7 +52,11 @@ void* attachSubWindow (void* hostWindowRef, Component* comp) { JUCE_AUTORELEASEPOOL + #if 0 + // This was suggested as a way to improve passing keypresses to the host, but + // a side-effect seems to be occasional rendering artifacts. HIWindowChangeClass ((WindowRef) hostWindowRef, kFloatingWindowClass); + #endif NSWindow* hostWindow = [[NSWindow alloc] initWithWindowRef: hostWindowRef]; [hostWindow retain]; @@ -66,8 +70,6 @@ void* attachSubWindow (void* hostWindowRef, Component* comp) f.size.height = comp->getHeight(); [content setFrame: f]; - NSRect hostWindowScreenFrame = [[hostWindow screen] frame]; - const int mainScreenHeight = [[[NSScreen screens] objectAtIndex: 0] frame].size.height; #if WINDOWPOSITION_BODGE