Simplify compositor and shell conditionals

Flatten nested guards in swipe cleanup, recording updates and popup dismissal. Use an eager optional fallback for workspace layouts and an array in the malformed-opacity test.
This commit is contained in:
Samuel Onoja committed 2026-10-04 14:43:43 +01:00
1 parent 3ba1f3522d
commit 5706a71941
5 files changed
+13 -15

No files matched your search

@@ -330,7 +330,7 @@ impl Ferese {
.as_ref()
.filter(|swipe| swipe.workspace == workspace.id)
.and_then(|swipe| swipe.layout.as_ref())
.or_else(|| match &workspace.layout {
.or(match &workspace.layout {
WorkspaceLayout::Scrolling(layout) => Some(layout),
_ => None,
});