From c42a2ac279713db1a01c47b7b405cb53f9e115c1 Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Wed, 3 Jul 2024 21:23:10 +0200 Subject: [PATCH] tiling: Don't crash when swapping with group --- src/shell/layout/tiling/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shell/layout/tiling/mod.rs b/src/shell/layout/tiling/mod.rs index 0f717f8d..83084b3f 100644 --- a/src/shell/layout/tiling/mod.rs +++ b/src/shell/layout/tiling/mod.rs @@ -5184,7 +5184,7 @@ where .stack_ref() .map(|stack| &stack.active() != stack_window) .unwrap_or(false), - _ => unreachable!(), + _ => false, }) .unwrap_or(false) }) @@ -5269,7 +5269,7 @@ where .stack_ref() .map(|stack| &stack.active() == stack_window) .unwrap_or(false), - _ => unreachable!(), // TODO: We could swap with a group + _ => false, }) .unwrap_or(false) })