1
0
Fork 0
forked from wry/wry

autocommit 2022-03-13 23:16:26 CET

This commit is contained in:
Julian Orth 2022-03-13 23:16:26 +01:00
parent a15a02a95c
commit 18806a38fb
13 changed files with 77 additions and 16 deletions

View file

@ -5,7 +5,10 @@ use std::rc::Rc;
pub async fn start_backend(state: Rc<State>) {
log::info!("Trying to start X backend");
let e = match XorgBackend::new(&state) {
Ok(_b) => pending().await,
Ok(b) => {
state.backend.set(Some(b));
pending().await
},
Err(e) => e,
};
log::warn!("Could not start X backend: {}", ErrorFmt(e));