autocommit 2022-03-11 18:15:21 CET
This commit is contained in:
parent
0399772467
commit
b1890894b2
30 changed files with 2909 additions and 504 deletions
|
|
@ -1,4 +1,4 @@
|
|||
use crate::backend::{InputDevice};
|
||||
use crate::backend::InputDevice;
|
||||
use crate::state::{DeviceHandlerData, InputDeviceData};
|
||||
use crate::utils::asyncevent::AsyncEvent;
|
||||
use crate::State;
|
||||
|
|
@ -64,6 +64,9 @@ impl DeviceHandler {
|
|||
if let Some(config) = self.state.config.get() {
|
||||
config.del_input_device(self.dev.id());
|
||||
}
|
||||
self.state.input_device_handlers.borrow_mut().remove(&self.dev.id());
|
||||
self.state
|
||||
.input_device_handlers
|
||||
.borrow_mut()
|
||||
.remove(&self.dev.id());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ mod start_backend;
|
|||
use crate::tasks::backend::BackendEventHandler;
|
||||
use crate::tasks::slow_clients::SlowClientHandler;
|
||||
use crate::State;
|
||||
use std::rc::Rc;
|
||||
pub use start_backend::start_backend;
|
||||
use std::rc::Rc;
|
||||
|
||||
pub async fn handle_backend_events(state: Rc<State>) {
|
||||
let mut beh = BackendEventHandler { state };
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
use crate::{metal, ErrorFmt, State, XorgBackend};
|
||||
use std::future::pending;
|
||||
use std::rc::Rc;
|
||||
use crate::{ErrorFmt, metal, State, XorgBackend};
|
||||
|
||||
pub async fn start_backend(state: Rc<State>) {
|
||||
log::info!("Trying to start X backend");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue