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

@@ -470,4 +470,10 @@ pub const CAPI = struct {
x.* = pos.x;
y.* = pos.y;
}
/// Request that the surface become closed. This will go through the
/// normal trigger process that a close surface input binding would.
export fn ghostty_surface_request_close(ptr: *Surface) void {
ptr.closeSurface() catch {};
}
};