Skip to content

Commit

Permalink
Fix tabs drawing over rest of MacVim in macOS 14 Sonoma
Browse files Browse the repository at this point in the history
macOS 14 now defaults clipsToBounds to false, which works in most places
in MacVim but seems to cause issues with PSMTabBar which relies on
clipping to work. Since we are replacing it soon, simply set
clipsToBounds to true for the control.

Fix #1439
  • Loading branch information
ychin committed Oct 12, 2023
1 parent 5098093 commit 30afcb7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/MacVim/PSMTabBarControl/source/PSMTabBarControl.m
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ - (void)initAddedProperties
}
[_addTabButton setNeedsDisplay:YES];
}

#if MAC_OS_X_VERSION_MAX_ALLOWED >= 140000
[self setClipsToBounds:YES];
#endif
}

- (id)initWithFrame:(NSRect)frame
Expand Down

0 comments on commit 30afcb7

Please # to comment.