From 9e4cd0b51c0c474cf1588fa437fbce24d644d010 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 16 Feb 2024 13:55:09 -0800 Subject: [PATCH] macos: minor reordering --- macos/Sources/Features/Terminal/TerminalController.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/macos/Sources/Features/Terminal/TerminalController.swift b/macos/Sources/Features/Terminal/TerminalController.swift index 28f13276c..5bb44f341 100644 --- a/macos/Sources/Features/Terminal/TerminalController.swift +++ b/macos/Sources/Features/Terminal/TerminalController.swift @@ -259,15 +259,15 @@ class TerminalController: NSWindowController, NSWindowDelegate, // titlebar tabs interferes with the window restore process unless window.tabbingMode // is set to .preferred, so we set it, and switch back to automatic as soon as we can. if (ghostty.config.macosTitlebarTabs) { - // Set the background color of the window - window.backgroundColor = NSColor(ghostty.config.backgroundColor) - window.tabbingMode = .preferred window.titlebarTabs = true syncAppearance() DispatchQueue.main.async { window.tabbingMode = .automatic } + + // Set the background color of the window + window.backgroundColor = NSColor(ghostty.config.backgroundColor) // Set a custom background on the titlebar - this is required for when // titlebar tabs are used in conjunction with a transparent background.