From 2675f747bb94b168300786eef081f909b2801ea5 Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Sat, 1 Jul 2023 11:31:32 -0700 Subject: [PATCH] fix(wm): apply custom layouts when containers >= columns Thanks to @thesobercoder and @olivoil for opening my eyes on this one. This commit reduces the number of containers required before a custom layout can be triggered. Please see the closed issue for more discussion and rationale behind this change. fix #390 --- komorebi-core/src/arrangement.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/komorebi-core/src/arrangement.rs b/komorebi-core/src/arrangement.rs index b8e4fe97..12727aaa 100644 --- a/komorebi-core/src/arrangement.rs +++ b/komorebi-core/src/arrangement.rs @@ -231,7 +231,7 @@ impl Arrangement for CustomLayout { let mut dimensions = vec![]; let container_count = len.get(); - if container_count <= self.len() { + if container_count < self.len() { let mut layouts = columns(area, container_count); dimensions.append(&mut layouts); } else {