From f40195381b7283693218eba7d0cbb278ef68a23e Mon Sep 17 00:00:00 2001 From: "warp-agent-staging[bot]" <240773466+warp-agent-staging[bot]@users.noreply.github.com> Date: Tue, 1 Sep 2026 19:05:02 +0000 Subject: [PATCH] x11: do not panic when setting WM hints fails request_user_attention is best-effort. Ignore I/O errors from WmHints::set the same way get already falls back, so a dead connection cannot abort the process. --- src/platform_impl/linux/x11/window.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/platform_impl/linux/x11/window.rs b/src/platform_impl/linux/x11/window.rs index 1acca0b1d0..c83aad3501 100644 --- a/src/platform_impl/linux/x11/window.rs +++ b/src/platform_impl/linux/x11/window.rs @@ -1814,9 +1814,11 @@ impl UnownedWindow { .unwrap_or_default(); wm_hints.urgent = request_type.is_some(); - wm_hints - .set(self.xconn.xcb_connection(), self.xwindow as xproto::Window) - .expect_then_ignore_error("Failed to set WM hints"); + if let Ok(cookie) = + wm_hints.set(self.xconn.xcb_connection(), self.xwindow as xproto::Window) + { + cookie.ignore_error(); + } } #[inline]