Refactor is_x11

This commit is contained in:
asur4s
2022-09-04 04:25:34 -04:00
parent 7a1b1d87e9
commit 9f80202c79
4 changed files with 11 additions and 6 deletions

View File

@@ -2,7 +2,7 @@ use super::*;
#[cfg(target_os = "macos")]
use dispatch::Queue;
use enigo::{Enigo, Key, KeyboardControllable, MouseButton, MouseControllable};
use hbb_common::platform::linux::IS_X11;
use crate::common::IS_X11;
use hbb_common::{config::COMPRESS_LEVEL, protobuf::EnumOrUnknown};
use rdev::{simulate, EventType, Key as RdevKey};
use std::{