From 7a35119d33e8aed30b41dd06baca0f45c3512a30 Mon Sep 17 00:00:00 2001 From: Asura Date: Sun, 4 Sep 2022 16:50:02 +0800 Subject: [PATCH] Fix misspell --- src/common.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common.rs b/src/common.rs index 58b456db9..2e772118c 100644 --- a/src/common.rs +++ b/src/common.rs @@ -725,9 +725,9 @@ pub fn save_keyboard_mode(value: String) { lazy_static::lazy_static! { pub static ref IS_X11: Mutex = { + #[cfg(target_os = "linux")] + Mutex::new("x11" == hbb_common::platform::linux::get_display_server()); #[cfg(not(target_os = "linux"))] - Mutex::new("x11" == hbb_common::platform::linux::get_display_server()) - #[cfg(not(target_os = "linux"))] - false + Mutex::new(false) }; } \ No newline at end of file