macos: take over menu bar, separate close and close window

This commit is contained in:
Mitchell Hashimoto
2023-03-10 14:27:55 -08:00
parent dc6e5e1437
commit a265e7ce20
5 changed files with 80 additions and 1 deletions

View File

@@ -55,6 +55,7 @@ extension Ghostty {
Surface(view: surfaceView, hasFocus: hasFocus, size: geo.size)
.focused($surfaceFocus)
.focusedValue(\.ghosttySurfaceTitle, surfaceView.title)
.focusedValue(\.ghosttySurfaceView, surfaceView)
}
.ghosttySurfaceView(surfaceView)
}