Force Ghostty to be active if not

pull/8838/head
Lars 2025-09-22 15:27:27 +02:00
parent 8600954526
commit 8beeebc21d
No known key found for this signature in database
GPG Key ID: 845CB61BD38F4E49
1 changed files with 5 additions and 0 deletions

View File

@ -98,6 +98,11 @@ struct NewTerminalIntent: AppIntent {
parent = nil parent = nil
} }
defer {
if !NSApp.isActive {
NSApp.activate(ignoringOtherApps: true)
}
}
switch location { switch location {
case .window: case .window:
let newController = TerminalController.newWindow( let newController = TerminalController.newWindow(