mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-05-30 20:18:37 +03:00
macos: fix some split focus issues
This commit is contained in:
@ -305,7 +305,12 @@ extension Ghostty {
|
||||
container.topLeft.close()
|
||||
node = container.bottomRight
|
||||
|
||||
Ghostty.moveFocus(to: node!.preferredFocus(), from: container.topLeft.preferredFocus())
|
||||
DispatchQueue.main.async {
|
||||
Ghostty.moveFocus(
|
||||
to: container.bottomRight.preferredFocus(),
|
||||
from: container.topLeft.preferredFocus()
|
||||
)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@ -322,7 +327,12 @@ extension Ghostty {
|
||||
container.bottomRight.close()
|
||||
node = container.topLeft
|
||||
|
||||
Ghostty.moveFocus(to: node!.preferredFocus(), from: container.bottomRight.preferredFocus())
|
||||
DispatchQueue.main.async {
|
||||
Ghostty.moveFocus(
|
||||
to: container.topLeft.preferredFocus(),
|
||||
from: container.bottomRight.preferredFocus()
|
||||
)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user