mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-07-11 15:42:43 +02: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 mut dimensions = vec![];
|
||||||
let container_count = len.get();
|
let container_count = len.get();
|
||||||
|
|
||||||
if container_count <= self.len() {
|
if container_count < self.len() {
|
||||||
let mut layouts = columns(area, container_count);
|
let mut layouts = columns(area, container_count);
|
||||||
dimensions.append(&mut layouts);
|
dimensions.append(&mut layouts);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user