mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-03-22 17:39:20 +01:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user