Skip to content

Commit

Permalink
fix for BigSur
Browse files Browse the repository at this point in the history
  • Loading branch information
kanjitalk755 committed Sep 5, 2021
1 parent 92f74f4 commit da80da9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CustomWindow.m
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ -(NSRect)constrainFrameRect:(NSRect)frameRect toScreen:(NSScreen *)aScreen
{
if (fullscreen) {
NSRect result = [[NSScreen mainScreen] frame];
if (hideMenuBar == YES) result.size.height+= 22;
if (hideMenuBar == YES) result.size.height += self.frame.size.height - view.frame.size.height;
return result;
} else {
NSRect result = [super constrainFrameRect:frameRect toScreen:aScreen];
Expand All @@ -80,7 +80,7 @@ - (void)setHideMenuBar:(BOOL)b
} else {
if ([self isKeyWindow]) [NSMenu setMenuBarVisible:NO];
NSRect result = [[NSScreen mainScreen] frame];
result.size.height += 22;
result.size.height += self.frame.size.height - view.frame.size.height;
[self setFrame:result display:YES];
}
resizable = NO;
Expand Down

0 comments on commit da80da9

Please sign in to comment.