diff --git a/src/bin/easymacroplay.rs b/src/bin/easymacroplay.rs index 32c06cb..386c2cc 100644 --- a/src/bin/easymacroplay.rs +++ b/src/bin/easymacroplay.rs @@ -41,6 +41,7 @@ fn main() { let stdin = stdin(); loop { + // TODO: Unify with macro_writer using trait objects let mut line = String::new(); stdin .read_line(&mut line) diff --git a/src/ev_callback_data.rs b/src/ev_callback_data.rs index c0df831..50a9cad 100644 --- a/src/ev_callback_data.rs +++ b/src/ev_callback_data.rs @@ -1,9 +1,9 @@ use crate::macro_writer::MacroWriter; use crate::x11_safe_wrapper::XDisplay; use crate::{Instructions, Keycode, Position}; -use std::mem::size_of; -use std::time::{SystemTime, UNIX_EPOCH}; -use x11::xlib::Time; +use std::mem; +use std::time; +use x11::xlib; use x11::xrecord::{XRecordContext, XRecordInterceptData}; #[repr(C)] @@ -13,11 +13,11 @@ pub struct EvCallbackData { pub recdpy: XDisplay, pub ctx: XRecordContext, pub working: bool, - pub last_event: Time, + pub last_event: xlib::Time, pub pos: Position, pub stop_key: Keycode, pub ev_nr: u32, - pub max_delay: Option