fix(wm): consider window count when calculating scrolling column width

This commit fixes the stupidest of stupid bugs. Column width
calculations on the Scrolling layout should take the number of windows
into account, especially when lower than the configured column count.
This commit is contained in:
LGUG2Z committed 2026-01-01 16:10:02 -08:00
1 parent 8f542b6c3b
commit 64ee9b6e0d
1 file changed
+1 -1
+1 -1
View File
@@ -43,7 +43,7 @@ impl Arrangement for DefaultLayout {
.and_then(|o| o.scrolling.map(|s| s.columns))
.unwrap_or(3);
let column_width = area.right / column_count as i32;
let column_width = area.right / column_count.min(len) as i32;
let mut layouts = Vec::with_capacity(len);
match len {