got a few low hanging fruit xdg/wl protocols out of the way
This commit is contained in:
parent
4c64d9c266
commit
219ede738e
9 changed files with 147 additions and 22 deletions
|
|
@ -8,7 +8,7 @@ mod state;
|
|||
mod winit;
|
||||
mod xwayland;
|
||||
|
||||
use smithay::reexports::{calloop::EventLoop, wayland_server::Display, winit::event_loop};
|
||||
use smithay::reexports::{calloop::EventLoop, wayland_server::Display};
|
||||
pub use state::State;
|
||||
|
||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
|
|
@ -17,7 +17,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||
let mut event_loop = EventLoop::try_new()?;
|
||||
let display: Display<State> = Display::new()?;
|
||||
|
||||
let mut state = State::new(display, event_loop.handle());
|
||||
let mut state = State::new(display, event_loop.handle())?;
|
||||
|
||||
// Open a Wayland/X11 window for our nested compositor
|
||||
crate::winit::init_winit(&mut state)?;
|
||||
|
|
@ -53,7 +53,8 @@ fn spawn_client() {
|
|||
// std::process::Command::new(command).spawn().ok();
|
||||
// }
|
||||
_ => {
|
||||
std::process::Command::new("weston-terminal").spawn().ok();
|
||||
std::process::Command::new("startmde").spawn().ok();
|
||||
std::process::Command::new("konsole").spawn().ok();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue