mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-20 01:14:20 +00:00
Fixed a problem with RTAS plugin window position in certain dual-monitor setups
This commit is contained in:
parent
1c3b7fe2f8
commit
d3ff5d9c4b
1 changed files with 2 additions and 2 deletions
|
|
@ -69,13 +69,13 @@ void* attachSubWindow (void* hostWindowRef, Component* comp)
|
|||
GetWindowBounds ((WindowRef) hostWindowRef, kWindowContentRgn, &winBounds);
|
||||
NSRect w = [hostWindow frame];
|
||||
w.origin.x = winBounds.left;
|
||||
w.origin.y = [[NSScreen mainScreen] frame].size.height - winBounds.bottom;
|
||||
w.origin.y = [[hostWindow screen] frame].size.height - winBounds.bottom;
|
||||
[hostWindow setFrame: w display: NO animate: NO];
|
||||
}
|
||||
#endif
|
||||
|
||||
NSPoint windowPos = [hostWindow convertBaseToScreen: f.origin];
|
||||
windowPos.y = [[NSScreen mainScreen] frame].size.height - (windowPos.y + f.size.height);
|
||||
windowPos.y = [[hostWindow screen] frame].size.height - (windowPos.y + f.size.height);
|
||||
|
||||
comp->setTopLeftPosition ((int) windowPos.x, (int) windowPos.y);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue