mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-08-27 17:41:40 +00:00
macos: explicitly update TerminalViewContainer when it's needed
This commit is contained in:
@@ -159,6 +159,8 @@ class QuickTerminalController: BaseTerminalController {
|
||||
// applies if we can be seen.
|
||||
guard visible else { return }
|
||||
|
||||
window?.terminalViewContainer?.updateGlassTintOverlay(isKeyWindow: true)
|
||||
|
||||
// Re-hide the dock if we were hiding it before.
|
||||
hiddenDock?.hide()
|
||||
}
|
||||
@@ -172,6 +174,8 @@ class QuickTerminalController: BaseTerminalController {
|
||||
// ensures we don't run logic twice.
|
||||
guard visible else { return }
|
||||
|
||||
window?.terminalViewContainer?.updateGlassTintOverlay(isKeyWindow: false)
|
||||
|
||||
// We don't animate out if there is a modal sheet being shown currently.
|
||||
// This lets us show alerts without causing the window to disappear.
|
||||
guard window?.attachedSheet == nil else { return }
|
||||
@@ -704,6 +708,8 @@ class QuickTerminalController: BaseTerminalController {
|
||||
self.derivedConfig = DerivedConfig(config)
|
||||
|
||||
syncAppearance()
|
||||
|
||||
window?.terminalViewContainer?.ghosttyConfigDidChange(config, preferredBackgroundColor: nil)
|
||||
}
|
||||
|
||||
@objc private func onNewTab(notification: SwiftUI.Notification) {
|
||||
|
||||
Reference in New Issue
Block a user