1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Reverted an RTAS windowing change.

This commit is contained in:
jules 2013-02-15 12:07:38 +00:00
parent 904e54660f
commit 4dcf550cd0

View file

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