mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-06-08 04:44:27 +00:00
macos: take over menu bar, separate close and close window
This commit is contained in:
@@ -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 {};
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user