mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-17 09:16:11 +03:00
macos: quick terminal always brings Ghostty to the front
This commit is contained in:
@ -136,6 +136,12 @@ class QuickTerminalController: BaseTerminalController {
|
||||
private func animateWindowIn(window: NSWindow, from position: QuickTerminalPosition) {
|
||||
guard let screen = ghostty.config.quickTerminalScreen.screen else { return }
|
||||
|
||||
// If our application is not active, then we grab focus. The quick terminal
|
||||
// always grabs focus.
|
||||
if !NSApp.isActive {
|
||||
NSApp.activate(ignoringOtherApps: true)
|
||||
}
|
||||
|
||||
// Move our window off screen to the top
|
||||
position.setInitial(in: window, on: screen)
|
||||
|
||||
|
Reference in New Issue
Block a user