From d016bf8392c9c6a82d2d8e77a1dea4912744621d Mon Sep 17 00:00:00 2001 From: Gregory Anders Date: Wed, 11 Dec 2024 13:15:24 -0600 Subject: [PATCH 1/3] mdgen: use bold face for option and action names --- src/build/mdgen/mdgen.zig | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/build/mdgen/mdgen.zig b/src/build/mdgen/mdgen.zig index 7e05596d7..c7e8c8638 100644 --- a/src/build/mdgen/mdgen.zig +++ b/src/build/mdgen/mdgen.zig @@ -30,10 +30,10 @@ pub fn genConfig(writer: anytype, cli: bool) !void { inline for (@typeInfo(Config).Struct.fields) |field| { if (field.name[0] == '_') continue; - try writer.writeAll("`"); + try writer.writeAll("**`"); if (cli) try writer.writeAll("--"); try writer.writeAll(field.name); - try writer.writeAll("`\n\n"); + try writer.writeAll("`**\n\n"); if (@hasDecl(help_strings.Config, field.name)) { var iter = std.mem.splitScalar(u8, @field(help_strings.Config, field.name), '\n'); var first = true; @@ -60,12 +60,12 @@ pub fn genActions(writer: anytype) !void { const action = std.meta.stringToEnum(Action, field.name).?; switch (action) { - .help => try writer.writeAll("`--help`\n\n"), - .version => try writer.writeAll("`--version`\n\n"), + .help => try writer.writeAll("**`--help`**\n\n"), + .version => try writer.writeAll("**`--version`**\n\n"), else => { - try writer.writeAll("`+"); + try writer.writeAll("**`+"); try writer.writeAll(field.name); - try writer.writeAll("`\n\n"); + try writer.writeAll("`**\n\n"); }, } @@ -97,9 +97,9 @@ pub fn genKeybindActions(writer: anytype) !void { inline for (info.Union.fields) |field| { if (field.name[0] == '_') continue; - try writer.writeAll("`"); + try writer.writeAll("**`"); try writer.writeAll(field.name); - try writer.writeAll("`\n\n"); + try writer.writeAll("`**\n\n"); if (@hasDecl(help_strings.KeybindAction, field.name)) { var iter = std.mem.splitScalar(u8, @field(help_strings.KeybindAction, field.name), '\n'); From 5180cc6c0ebd497dd8f05e01445ca227faed4b73 Mon Sep 17 00:00:00 2001 From: Anthony Date: Thu, 12 Dec 2024 15:26:26 +1100 Subject: [PATCH 2/3] Remove executable permission from readonly config file --- dist/linux/ghostty_dolphin.desktop | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 dist/linux/ghostty_dolphin.desktop diff --git a/dist/linux/ghostty_dolphin.desktop b/dist/linux/ghostty_dolphin.desktop old mode 100755 new mode 100644 From b19d0d36380af732c61607c7a1669fcb1813290e Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 11 Dec 2024 20:25:19 -0800 Subject: [PATCH 3/3] Back out "apprt/gtk: force X11 backend on GTK 4.14" This backs out commit bb185cf6b695420ce8b43b5c1cadd16ef71c481a. This was breaking IME input for some users and overall I couldn't find other users where this really fixed anything other than me so I'm going to back this out and fix this using my own system. --- src/apprt/gtk/App.zig | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/apprt/gtk/App.zig b/src/apprt/gtk/App.zig index 6329644be..8c42ddf37 100644 --- a/src/apprt/gtk/App.zig +++ b/src/apprt/gtk/App.zig @@ -123,13 +123,6 @@ pub fn init(core_app: *CoreApp, opts: Options) !App { // and initializing a Vulkan context was causing a longer delay // on some systems. _ = internal_os.setenv("GDK_DEBUG", "opengl,gl-disable-gles,vulkan-disable"); - - // Wayland-EGL on GTK 4.14 causes "Failed to create EGL context" errors. - // This can be fixed by forcing the backend to prefer X11. This issue - // appears to be fixed in GTK 4.16 but I wasn't able to bisect why. - // The "*" at the end says that if X11 fails, try all remaining - // backends. - _ = internal_os.setenv("GDK_BACKEND", "x11,*"); } else { // Versions prior to 4.14 are a bit of an unknown for Ghostty. It // is an environment that isn't tested well and we don't have a