From 970b07fa5814459fb8963908bb1eae784ff4e55b Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Thu, 20 Jul 2023 15:42:32 -0700 Subject: [PATCH] Fix panic in background thread --- src/wayland/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland/mod.rs b/src/wayland/mod.rs index f89ee89..d76bcb1 100644 --- a/src/wayland/mod.rs +++ b/src/wayland/mod.rs @@ -135,7 +135,7 @@ impl AppData { } } CaptureSource::Workspace(_, output) => { - if let Some(name) = &self.output_state.info(&output).unwrap().name { + if let Some(name) = &self.output_state.info(&output).and_then(|x| x.name) { self.capture_filter.workspaces_on_outputs.contains(name) } else { false