mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-01 23:11:29 +03:00
cleanup
* cleanup Cargo.toml * exclude backend from windows build * remove env include in windows build * remove Backend from windows build * fix compiler warning
This commit is contained in:
committed by
GitHub
parent
90ad518ebe
commit
deb1548e21
@@ -1,7 +1,11 @@
|
||||
use std::{thread::{JoinHandle, self}, env, sync::mpsc::Receiver};
|
||||
use std::{thread::{JoinHandle, self}, sync::mpsc::Receiver};
|
||||
|
||||
#[cfg(unix)]
|
||||
use std::env;
|
||||
|
||||
use crate::{backend::consumer, client::{Client, ClientHandle}, event::Event};
|
||||
|
||||
#[cfg(unix)]
|
||||
#[derive(Debug)]
|
||||
enum Backend {
|
||||
Wlroots,
|
||||
@@ -11,6 +15,9 @@ enum Backend {
|
||||
}
|
||||
|
||||
pub fn start(consume_rx: Receiver<(Event, ClientHandle)>, clients: Vec<Client>, backend: Option<String>) -> JoinHandle<()> {
|
||||
#[cfg(windows)]
|
||||
let _backend = backend;
|
||||
|
||||
thread::Builder::new()
|
||||
.name("event consumer".into())
|
||||
.spawn(move || {
|
||||
|
||||
@@ -6,6 +6,7 @@ use crate::{client::{Client, ClientHandle}, event::Event, request::Server};
|
||||
|
||||
use crate::backend::producer;
|
||||
|
||||
#[cfg(unix)]
|
||||
enum Backend {
|
||||
Wayland,
|
||||
X11,
|
||||
|
||||
Reference in New Issue
Block a user