Skip to content

Commit 7d8b589

Browse files
committed
Fix Mojave-style tabs not triggering in fullscreen
1 parent bbad3ed commit 7d8b589

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/MacVim/MMFullScreenWindow.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ - (void)enterFullScreen
165165
oldTabBarStyle = [[view tabBarControl] styleName];
166166

167167
NSString *style =
168-
shouldUseYosemiteTabBarStyle() ? @"Yosemite" : @"Unified";
168+
shouldUseYosemiteTabBarStyle() ? (shouldUseMojaveTabBarStyle() ? @"Mojave" : @"Yosemite") : @"Unified";
169169
[[view tabBarControl] setStyleNamed:style];
170170

171171
// add text view

src/MacVim/MMWindowController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1751,12 +1751,12 @@ - (void)processAfterWindowPresentedQueue
17511751

17521752
+ (NSString *)tabBarStyleForUnified
17531753
{
1754-
return shouldUseYosemiteTabBarStyle() ? @"Yosemite" : @"Unified";
1754+
return shouldUseYosemiteTabBarStyle() ? (shouldUseMojaveTabBarStyle() ? @"Mojave" : @"Yosemite") : @"Unified";
17551755
}
17561756

17571757
+ (NSString *)tabBarStyleForMetal
17581758
{
1759-
return shouldUseYosemiteTabBarStyle() ? @"Yosemite" : @"Metal";
1759+
return shouldUseYosemiteTabBarStyle() ? (shouldUseMojaveTabBarStyle() ? @"Mojave" : @"Yosemite") : @"Metal";
17601760
}
17611761

17621762
@end // MMWindowController (Private)

0 commit comments

Comments
 (0)