gpui: Set initial window title on Wayland (#36844)

Sushant Mishra created

Closes #36843 

Release Notes:

- Fixed: set the initial window title correctly on startup in Wayland.

Change summary

crates/gpui/src/platform/linux/wayland/window.rs | 6 ++++++
1 file changed, 6 insertions(+)

Detailed changes

crates/gpui/src/platform/linux/wayland/window.rs 🔗

@@ -157,6 +157,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,