mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-29 02:40:05 +00:00
macOS: Call superclass constrainFrameRect for NSWindow to ensure that native title bar stays on screen
This commit is contained in:
parent
c8a416f476
commit
a5d26db341
1 changed files with 5 additions and 0 deletions
|
|
@ -2055,7 +2055,12 @@ private:
|
|||
static NSRect constrainFrameRect (id self, SEL, NSRect frameRect, NSScreen* screen)
|
||||
{
|
||||
if (auto* owner = getOwner (self))
|
||||
{
|
||||
frameRect = sendSuperclassMessage<NSRect, NSRect, NSScreen*> (self, @selector (constrainFrameRect:toScreen:),
|
||||
frameRect, screen);
|
||||
|
||||
frameRect = owner->constrainRect (frameRect);
|
||||
}
|
||||
|
||||
return frameRect;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue