1
0
Fork 0
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:
ed 2020-07-10 16:18:21 +01:00
parent c8a416f476
commit a5d26db341

View file

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