macos: remove nstitlecontainerview hidden

This commit is contained in:
Mitchell Hashimoto
2024-09-20 19:17:50 -07:00
parent ae46ff6854
commit 962aa49a45

View File

@ -360,14 +360,6 @@ class TerminalController: NSWindowController, NSWindowDelegate,
// Disallow tabbing if the titlebar is hidden, since that will (should) also hide the tab bar. // Disallow tabbing if the titlebar is hidden, since that will (should) also hide the tab bar.
window.tabbingMode = .disallowed window.tabbingMode = .disallowed
// Nuke it from orbit -- hide the titlebar container entirely, just in case.
if let themeFrame = window.contentView?.superview {
// Hide the titlebar container
if let titleBarContainer = themeFrame.firstDescendant(withClassName: "NSTitlebarContainerView") {
titleBarContainer.isHidden = true
}
}
} }
// In various situations, macOS automatically tabs new windows. Ghostty handles // In various situations, macOS automatically tabs new windows. Ghostty handles