Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
luftaquila committed May 2, 2024
1 parent 9f64974 commit c365dda
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,21 @@ impl Server {
thread::spawn(move || {
handle_client(clients, displays, disp_ids, authorized);
});

// TODO: listen event
let mut mouce = Mouse::new();
let hook = mouce.hook(Box::new(|e| {
println!("{:?}", e);
}));

match hook {
Ok(id) => {
println!("hook: {}", id);
},
Err(e) => {
eprintln!("[ERR] event hook failed: {:?}", e);
}
}
}
}

Expand Down

0 comments on commit c365dda

Please sign in to comment.