Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

gpui_linux: Set _NET_WM_NAME during X11 window creation (#51899)

Om Chillure08d78101af4c
diff --git a/crates/gpui_linux/src/linux/x11/window.rs b/crates/gpui_linux/src/linux/x11/window.rs
index 57600103ce9..5c7c0e8e022 100644
--- a/crates/gpui_linux/src/linux/x11/window.rs
+++ b/crates/gpui_linux/src/linux/x11/window.rs
@@ -533,7 +533,7 @@ impl X11WindowState {
&& let Some(title) = titlebar.title
{
check_reply(
- || "X11 ChangeProperty8 on window title failed.",
+ || "X11 ChangeProperty8 on WM_NAME failed.",
xcb.change_property8(
xproto::PropMode::REPLACE,
x_window,
@@ -542,6 +542,16 @@ impl X11WindowState {
title.as_bytes(),
),
)?;
+ check_reply(
+ || "X11 ChangeProperty8 on _NET_WM_NAME failed.",
+ xcb.change_property8(
+ xproto::PropMode::REPLACE,
+ x_window,
+ atoms._NET_WM_NAME,
+ atoms.UTF8_STRING,
+ title.as_bytes(),
+ ),
+ )?;
}
if params.kind == WindowKind::PopUp {