mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-20 23:03:20 +03:00
formatting
This commit is contained in:
16
src/main.rs
16
src/main.rs
@@ -12,7 +12,7 @@ use lan_mouse::{
|
||||
use lan_mouse::backend::windows;
|
||||
|
||||
#[cfg(unix)]
|
||||
use lan_mouse::backend::{Backend,wayland,x11};
|
||||
use lan_mouse::backend::{wayland, x11, Backend};
|
||||
|
||||
fn add_client(client_manager: &mut ClientManager, client: &config::Client, pos: Position) {
|
||||
let ip = match client.ip {
|
||||
@@ -74,7 +74,7 @@ pub fn main() {
|
||||
"x11" => Backend::X11,
|
||||
"wayland" => Backend::WAYLAND,
|
||||
_ => panic!("unknown XDG_SESSION_TYPE"),
|
||||
}
|
||||
},
|
||||
Err(_) => panic!("could not detect session type"),
|
||||
};
|
||||
|
||||
@@ -82,11 +82,13 @@ pub fn main() {
|
||||
println!("using backend: windows");
|
||||
|
||||
#[cfg(unix)]
|
||||
println!("using backend: {}", match backend {
|
||||
Backend::X11 => "x11",
|
||||
Backend::WAYLAND => "wayland",
|
||||
});
|
||||
|
||||
println!(
|
||||
"using backend: {}",
|
||||
match backend {
|
||||
Backend::X11 => "x11",
|
||||
Backend::WAYLAND => "wayland",
|
||||
}
|
||||
);
|
||||
|
||||
// start producing and consuming events
|
||||
let event_producer = thread::Builder::new()
|
||||
|
||||
Reference in New Issue
Block a user