mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +03:00

Fixes #734 I don't know much about SwiftUI, but here's why I think this works. - Moving the `inspectorVisible` logic to an `onChange` ensures the view has at least seen that change. - The dispatch to the main thread is still necessary to ensure the view hierarchy has completely updated after `inspectorVisible`. Note that this fix is to correctly regain focus. We still lose window focus very briefly.