Skip to content
Snippets Groups Projects
Commit a72e9ded authored by George Nachman's avatar George Nachman
Browse files

When screens don't have separate spaces, only hide menu bar when iterm is on the first screen

parent d0ae459a
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -123,5 +123,6 @@ CTFontDrawGlyphsFunction* GetCTFontDrawGlyphsFunction(void);
 
@interface NSScreen (future)
- (CGFloat)futureBackingScaleFactor;
+ (BOOL)futureScreensHaveSeparateSpaces;
@end
 
Loading
Loading
@@ -234,6 +234,14 @@ static FutureNSScrollerStyle GetScrollerStyle(id theObj)
}
}
 
+ (BOOL)futureScreensHaveSeparateSpaces {
if ([self respondsToSelector:@selector(screensHaveSeparateSpaces)]) {
return [self screensHaveSeparateSpaces];
} else {
return NO;
}
}
@end
 
static void *GetFunctionByName(NSString *library, char *func) {
Loading
Loading
Loading
Loading
@@ -4552,7 +4552,8 @@ NSString *sessionsKey = @"sessions";
currentScreen = [NSScreen mainScreen];
}
 
if (currentScreen == menubarScreen || IsMavericksOrLater()) {
// If screens have separate spaces (only applicable in Mavericks and later) then all screens have a menu bar.
if (currentScreen == menubarScreen || (IsMavericksOrLater() && [NSScreen futureScreensHaveSeparateSpaces])) {
int flags = NSApplicationPresentationAutoHideDock;
if ([[PreferencePanel sharedInstance] hideMenuBarInFullscreen]) {
flags |= NSApplicationPresentationAutoHideMenuBar;
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment