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:
parent
904e54660f
commit
4dcf550cd0
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue