From 53cd380a2386ec6e369dc7523027ef1970d6b6c7 Mon Sep 17 00:00:00 2001 From: dignow Date: Fri, 23 Jun 2023 14:37:21 +0800 Subject: [PATCH] fix build Signed-off-by: dignow --- src/server/connection.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/server/connection.rs b/src/server/connection.rs index 5eb86808a..4992bb416 100644 --- a/src/server/connection.rs +++ b/src/server/connection.rs @@ -63,10 +63,7 @@ lazy_static::lazy_static! { static ref SWITCH_SIDES_UUID: Arc::>> = Default::default(); } pub static CLICK_TIME: AtomicI64 = AtomicI64::new(0); -#[cfg(all( - not(any(target_os = "android", target_os = "ios")), - feature = "flutter" -))] +#[cfg(not(any(target_os = "android", target_os = "ios")))] pub static MOUSE_MOVE_TIME: AtomicI64 = AtomicI64::new(0); #[cfg(all(feature = "flutter", feature = "plugin_framework"))] @@ -1570,10 +1567,7 @@ impl Connection { if is_left_up(&me) { CLICK_TIME.store(get_time(), Ordering::SeqCst); } else { - #[cfg(all( - not(any(target_os = "android", target_os = "ios")), - feature = "flutter" - ))] + #[cfg(not(any(target_os = "android", target_os = "ios")))] MOUSE_MOVE_TIME.store(get_time(), Ordering::SeqCst); } self.input_mouse(me, self.inner.id());