From abd27e6aabac58f1d6d53f84dcad1c54b106e995 Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Thu, 14 Sep 2023 15:27:05 +0200 Subject: [PATCH] shell: Fix group backdrop on swap --- src/shell/layout/tiling/mod.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/shell/layout/tiling/mod.rs b/src/shell/layout/tiling/mod.rs index 5e81e177..983f44bd 100644 --- a/src/shell/layout/tiling/mod.rs +++ b/src/shell/layout/tiling/mod.rs @@ -4279,7 +4279,18 @@ where Key::Group(Arc::downgrade(alive)), geo, 8., - alpha * 0.15, + alpha + * if focused + .as_ref() + .map(|focused| { + focused == &swap_desc.as_ref().unwrap().node + }) + .unwrap_or(false) + { + 0.4 + } else { + 0.15 + }, GROUP_COLOR, ) .into(),