summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortlj <tlj@tlj.no>2025-10-10 07:58:01 +0200
committerMitchell Hashimoto <m@mitchellh.com>2025-10-10 08:49:59 -0700
commitf0da093bdca19eb8087a43f6dd73ec90240b56a4 (patch)
tree13d5ef9f89d396617e70be2a3d2bc8da63cb9cf7 /src
parentdbe42d9353a578b6425cd7d730b22cdc23869711 (diff)
apprt/gtk: use configured title as fallback for closureComputedTitle
Diffstat (limited to 'src')
-rw-r--r--src/apprt/gtk/class/tab.zig6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/apprt/gtk/class/tab.zig b/src/apprt/gtk/class/tab.zig
index 941fa00a9..c9928be8b 100644
--- a/src/apprt/gtk/class/tab.zig
+++ b/src/apprt/gtk/class/tab.zig
@@ -389,8 +389,14 @@ pub const Tab = extern struct {
// the terminal title if it exists, otherwise a default string.
const plain = plain: {
const default = "Ghostty";
+ const config_title: ?[*:0]const u8 = title: {
+ const config = config_ orelse break :title null;
+ break :title config.get().title orelse null;
+ };
+
const plain = override_ orelse
terminal_ orelse
+ config_title orelse
break :plain default;
break :plain std.mem.span(plain);
};