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
This commit is contained in:
LGUG2Z
2023-07-01 11:31:32 -07:00
parent 5b9730823e
commit 2675f747bb

View File

@@ -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 {