macos: address quick terminal basic functionality with new API

This commit is contained in:
Mitchell Hashimoto
2025-06-07 13:07:05 -07:00
parent 20744f0482
commit 6e77a5a6ca
5 changed files with 62 additions and 12 deletions

View File

@@ -612,6 +612,10 @@ class AppDelegate: NSObject,
guard let surfaceView = notification.object as? Ghostty.SurfaceView else { return }
guard let window = surfaceView.window else { return }
// We only want to listen to new tabs if the focused parent is
// a regular terminal controller.
guard window.windowController is TerminalController else { return }
let configAny = notification.userInfo?[Ghostty.Notification.NewSurfaceConfigKey]
let config = configAny as? Ghostty.SurfaceConfiguration