kms: Corrently resume when switching back VTs

This commit is contained in:
Victoria Brekenfeld 2022-04-26 12:28:50 +02:00
parent e5cd473a3a
commit 81374ed282
2 changed files with 86 additions and 35 deletions

View file

@ -12,7 +12,7 @@ pub mod x11;
// TODO
// pub mod wayland; // tbd in smithay
pub fn init_backend_auto(event_loop: &mut EventLoop<State>, state: &mut State) -> Result<()> {
pub fn init_backend_auto(event_loop: &mut EventLoop<'static, State>, state: &mut State) -> Result<()> {
match std::env::var("COSMIC_BACKEND") {
Ok(x) if x == "x11" => x11::init_backend(event_loop, state),
Ok(x) if x == "winit" => winit::init_backend(event_loop, state),