WayVR: Display removal support

This commit is contained in:
Aleksander
2025-01-19 15:20:13 +01:00
parent 244f8cfa80
commit 80d9b02ac7
10 changed files with 119 additions and 13 deletions

View File

@@ -484,6 +484,7 @@ pub fn openxr_run(running: Arc<AtomicBool>, show_by_default: bool) -> Result<(),
TaskType::DropOverlay(sel) => {
if let Some(o) = overlays.mut_by_selector(&sel) {
if o.state.birthframe < cur_frame {
log::debug!("{}: destroy", o.state.name);
if let Some(o) = overlays.remove_by_selector(&sel) {
// set for deletion after all images are done showing
delete_queue.push((o, cur_frame + 5));