mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
Fix the issue that the quick term not shown on first call
This commit is contained in:

committed by
Mitchell Hashimoto

parent
0ddc1a21a6
commit
37db4578c8
@ -166,7 +166,9 @@ class QuickTerminalController: BaseTerminalController {
|
||||
func toggle() {
|
||||
if derivedConfig.quickTerminalSpaceBehavior == .remain && self.window?.isOnActiveSpace == false {
|
||||
// If we're in the remain mode and the window is not on the active space, then we bring the window back to the active space.
|
||||
DispatchQueue.main.async {
|
||||
self.window?.makeKeyAndOrderFront(nil)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
@ -239,7 +241,9 @@ class QuickTerminalController: BaseTerminalController {
|
||||
position.setInitial(in: window, on: screen)
|
||||
|
||||
// Move it to the visible position since animation requires this
|
||||
DispatchQueue.main.async {
|
||||
window.makeKeyAndOrderFront(nil)
|
||||
}
|
||||
|
||||
// Run the animation that moves our window into the proper place and makes
|
||||
// it visible.
|
||||
|
Reference in New Issue
Block a user