mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
Fix new window focus when quick terminal is open
This commit is contained in:

committed by
Mitchell Hashimoto

parent
3423cfdc71
commit
3a7fb03ef9
@ -95,11 +95,8 @@ class TerminalManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// If our app isn't active, we make it active. All new_window actions
|
// All new_window actions force our app to be active.
|
||||||
// force our app to be active.
|
NSApp.activate(ignoringOtherApps: true)
|
||||||
if !NSApp.isActive {
|
|
||||||
NSApp.activate(ignoringOtherApps: true)
|
|
||||||
}
|
|
||||||
|
|
||||||
// We're dispatching this async because otherwise the lastCascadePoint doesn't
|
// We're dispatching this async because otherwise the lastCascadePoint doesn't
|
||||||
// take effect. Our best theory is there is some next-event-loop-tick logic
|
// take effect. Our best theory is there is some next-event-loop-tick logic
|
||||||
|
Reference in New Issue
Block a user