fix errors

This commit is contained in:
galister
2025-05-30 22:23:24 +09:00
parent f29364d772
commit 2347d4e5aa

View File

@@ -62,14 +62,15 @@ where
pub fn new(app: &mut AppState, headless: bool) -> anyhow::Result<Self> { pub fn new(app: &mut AppState, headless: bool) -> anyhow::Result<Self> {
let mut overlays = IdMap::new(); let mut overlays = IdMap::new();
let mut show_screens = app.session.config.show_screens.clone(); let mut show_screens = app.session.config.show_screens.clone();
let keymap = None; let mut wl = None;
let mut keymap = None;
app.screens.clear(); app.screens.clear();
if headless { if headless {
log::info!("Running in headless mode; keyboard will be en-US"); log::info!("Running in headless mode; keyboard will be en-US");
} else { } else {
let mut wl = create_wl_client(); wl = create_wl_client();
let data = if let Some(wl) = wl.as_mut() { let data = if let Some(wl) = wl.as_mut() {
log::info!("Wayland detected."); log::info!("Wayland detected.");