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

@@ -82,6 +82,12 @@ extension Ghostty {
ghostty_app_tick(app)
}
/// Request that the given surface is closed. This will trigger the full normal surface close event
/// cycle which will call our close surface callback.
func requestClose(surface: ghostty_surface_t) {
ghostty_surface_request_close(surface)
}
// MARK: Ghostty Callbacks
static func newSplit(_ userdata: UnsafeMutableRawPointer?, direction: ghostty_split_direction_e) {