unblock inputs on exit

This commit is contained in:
Sapphire 2026-02-11 18:40:09 -06:00 committed by galister
parent 4fc439abe2
commit 26f078d512
2 changed files with 8 additions and 0 deletions

View File

@ -18,6 +18,10 @@ impl InputBlocker {
}
}
pub fn unblock(&self, monado: &mut Monado) {
self.block_inputs(monado, false, false);
}
pub fn update(&mut self, app: &mut AppState) {
let Some(monado) = &mut app.monado else {
return; // monado not available

View File

@ -499,6 +499,10 @@ pub fn openxr_run(show_by_default: bool, headless: bool) -> Result<(), BackendEr
watch.config.active_state.as_mut().unwrap().transform = watch_transform;
} // main_loop
if let (Some(blocker), Some(monado)) = (blocker, app.monado.as_mut()) {
blocker.unblock(monado);
}
overlays.persist_layout(&mut app);
if let Err(e) = save_state(&app.session.config) {
log::error!("Could not save state: {e:?}");