From 4dcf550cd07e2be7ac873aceb551444421bd9520 Mon Sep 17 00:00:00 2001 From: jules Date: Fri, 15 Feb 2013 12:07:38 +0000 Subject: [PATCH] Reverted an RTAS windowing change. --- .../juce_audio_plugin_client/RTAS/juce_RTAS_MacUtilities.mm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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