Refactor is_x11

This commit is contained in:
asur4s committed 2022-09-04 04:25:34 -04:00
1 parent 7a1b1d87e9
commit 9f80202c79
4 files changed
+11 -6

No files matched your search

+1 -1
View File
@@ -156,7 +156,7 @@ impl Client {
}
Ok(x) => {
#[cfg(target_os = "linux")]
if !*IS_X11.lock().unwrap() {
if !*crate::common::IS_X11.lock().unwrap() {
let keyboard = super::uinput::client::UInputKeyboard::new().await?;
log::info!("UInput keyboard created");
let mouse = super::uinput::client::UInputMouse::new().await?;