macos: fix glass tinting when theme changes (#11030)

This is a minimal and temporary workaround for #11017
This commit is contained in:
Mitchell Hashimoto
2026-02-26 07:06:34 -08:00
committed by GitHub

View File

@@ -87,7 +87,8 @@ class TerminalViewContainer<ViewModel: TerminalViewModel>: NSView {
let newValue = DerivedConfig(config: config)
guard newValue != derivedConfig else { return }
derivedConfig = newValue
DispatchQueue.main.async(execute: updateGlassEffectIfNeeded)
// Add some delay to wait TerminalWindow to update first
DispatchQueue.main.asyncAfter(deadline: .now() + 0.05, execute: updateGlassEffectIfNeeded)
}
@objc private func windowDidBecomeKey(_ notification: Notification) {