1
0
Fork 0
forked from wry/wry

autocommit 2022-03-22 23:24:17 CET

This commit is contained in:
Julian Orth 2022-03-22 23:24:17 +01:00
parent 18806a38fb
commit 2ff60ff817
36 changed files with 4934 additions and 237 deletions

View file

@ -1,12 +1,19 @@
use crate::{metal, ErrorFmt, State, XorgBackend};
use crate::{metal, ErrorFmt, State};
use std::future::pending;
use std::rc::Rc;
use crate::backends::xorgng::XorgngBackend;
pub async fn start_backend(state: Rc<State>) {
log::info!("Trying to start X backend");
let e = match XorgBackend::new(&state) {
Ok(b) => {
state.backend.set(Some(b));
// let e = match XorgBackend::new(&state) {
// Ok(b) => {
// state.backend.set(Some(b));
// pending().await
// }
// Err(e) => e,
// };
let e = match XorgngBackend::run(&state).await {
Ok(_) => {
pending().await
},
Err(e) => e,