From 35196ee8f38315199e8c3c7fc9574b6cfa98a0b6 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Mon, 1 Dec 2025 00:14:47 -0300 Subject: [PATCH] client: addressed unsafe block --- client/src/main.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/client/src/main.rs b/client/src/main.rs index 280cdcc..9273772 100644 --- a/client/src/main.rs +++ b/client/src/main.rs @@ -23,18 +23,6 @@ fn ensure_runtime_dir() { #[tokio::main(flavor = "current_thread")] async fn main() -> Result<()> { - // Prefer X11/Xwayland on KDE Wayland so wmctrl-based placement works - if env::var_os("WAYLAND_DISPLAY").is_some() { - if let Some(desktop) = env::var_os("XDG_CURRENT_DESKTOP") { - if desktop.to_string_lossy().to_ascii_lowercase().contains("kde") { - unsafe { - env::set_var("GDK_BACKEND", "x11"); - env::set_var("WINIT_UNIX_BACKEND", "x11"); - } - } - } - } - ensure_runtime_dir(); /*------------- common filter & stderr layer ------------------------*/