macos: fix some split focus issues

This commit is contained in:
Mitchell Hashimoto
2023-10-30 22:48:35 -07:00
parent 0fbb5c8c70
commit ae104111d7

View File

@ -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()
)
}
})
}
}