mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
Move the quick terminal to active space if toggle() called while opening on another space
This commit is contained in:

committed by
Mitchell Hashimoto

parent
1493c55348
commit
7bb3c31cee
@ -164,6 +164,12 @@ class QuickTerminalController: BaseTerminalController {
|
||||
// MARK: Methods
|
||||
|
||||
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.
|
||||
self.window?.makeKeyAndOrderFront(nil)
|
||||
return
|
||||
}
|
||||
|
||||
if (visible) {
|
||||
animateOut()
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user