core: app needsConfirmQuit to streamline quitting if no active sessions

This commit is contained in:
Mitchell Hashimoto
2023-09-11 15:44:08 -07:00
parent f96eb07733
commit 56ccadd7f1
4 changed files with 31 additions and 13 deletions

View File

@@ -787,6 +787,11 @@ pub const CAPI = struct {
};
}
/// Returns true if the app needs to confirm quitting.
export fn ghostty_app_needs_confirm_quit(v: *App) bool {
return v.core_app.needsConfirmQuit();
}
/// Returns initial surface options.
export fn ghostty_surface_config_new() apprt.Surface.Options {
return .{};