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.

Remove panics from X11Window::set_title (#22173)

Cole Miller613deb6421de
diff --git a/crates/gpui/src/platform/linux/x11/window.rs b/crates/gpui/src/platform/linux/x11/window.rs
index 2cce0f065d7..8fb378072f1 100644
--- a/crates/gpui/src/platform/linux/x11/window.rs
+++ b/crates/gpui/src/platform/linux/x11/window.rs
@@ -1215,7 +1215,7 @@ impl PlatformWindow for X11Window {
title.as_bytes(),
),
)
- .unwrap();
+ .log_err();
check_reply(
|| "X11 ChangeProperty8 on _NET_WM_NAME failed.",
@@ -1227,8 +1227,8 @@ impl PlatformWindow for X11Window {
title.as_bytes(),
),
)
- .unwrap();
- self.flush().unwrap();
+ .log_err();
+ self.flush().log_err();
}
fn set_app_id(&mut self, app_id: &str) {