config: quit-after-last-window-closed should be true on Linux

This was the behavior on GTK prior to #2021 and I think it makes sense
as a default there.
This commit is contained in:
Mitchell Hashimoto
2024-08-10 14:38:20 -07:00
parent edea928117
commit 1ef3c79ba8

View File

@ -947,13 +947,16 @@ keybind: Keybinds = .{},
/// true. If set to false, surfaces will close without any confirmation. /// true. If set to false, surfaces will close without any confirmation.
@"confirm-close-surface": bool = true, @"confirm-close-surface": bool = true,
/// Whether or not to quit after the last surface is closed. This /// Whether or not to quit after the last surface is closed.
/// defaults to `false`. ///
/// This defaults to `false` on macOS since that is standard behavior for
/// a macOS application. On Linux, this defaults to `true` since that is
/// generally expected behavior.
/// ///
/// On Linux, if this is `true`, Ghostty can delay quitting fully until a /// On Linux, if this is `true`, Ghostty can delay quitting fully until a
/// configurable amount of time has passed after the last window is closed. /// configurable amount of time has passed after the last window is closed.
/// See the documentation of `quit-after-last-window-closed-delay`. /// See the documentation of `quit-after-last-window-closed-delay`.
@"quit-after-last-window-closed": bool = false, @"quit-after-last-window-closed": bool = builtin.os.tag == .linux,
/// Controls how long Ghostty will stay running after the last open surface has /// Controls how long Ghostty will stay running after the last open surface has
/// been closed. This only has an effect if `quit-after-last-window-closed` is /// been closed. This only has an effect if `quit-after-last-window-closed` is