From b73d1586d30fb62e9d72b3dd78e29265da203ca6 Mon Sep 17 00:00:00 2001 From: Sushant-Git Date: Sun, 24 Aug 2025 18:29:40 +0530 Subject: [PATCH 1/2] fix: set inital window title on wayland displays --- crates/gpui/src/platform/linux/wayland/window.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/gpui/src/platform/linux/wayland/window.rs b/crates/gpui/src/platform/linux/wayland/window.rs index 7570c58c09..b228f1a8af 100644 --- a/crates/gpui/src/platform/linux/wayland/window.rs +++ b/crates/gpui/src/platform/linux/wayland/window.rs @@ -155,6 +155,12 @@ impl WaylandWindowState { BladeRenderer::new(gpu_context, &raw_window, config)? }; + if let Some(titlebar) = options.titlebar { + if let Some(title) = titlebar.title { + toplevel.set_title(title.to_string()); + } + } + Ok(Self { xdg_surface, acknowledged_first_configure: false, From 50315ac9f5e07d500df00b4ed3002172a689b769 Mon Sep 17 00:00:00 2001 From: Sushant-Git Date: Mon, 25 Aug 2025 21:13:58 +0530 Subject: [PATCH 2/2] format --- crates/gpui/src/platform/linux/wayland/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/gpui/src/platform/linux/wayland/window.rs b/crates/gpui/src/platform/linux/wayland/window.rs index b228f1a8af..13717f1ea1 100644 --- a/crates/gpui/src/platform/linux/wayland/window.rs +++ b/crates/gpui/src/platform/linux/wayland/window.rs @@ -157,7 +157,7 @@ impl WaylandWindowState { if let Some(titlebar) = options.titlebar { if let Some(title) = titlebar.title { - toplevel.set_title(title.to_string()); + toplevel.set_title(title.to_string()); } }