tony / oxwm

changed count to window_count Browse files
tonybtw committed 2025-09-26 parent 2456898 commit 333c305ec9f963eabbc4462c1db7899f10b11c46
Showing 1 changed file with 5 additions and 5 deletions. UnifiedSplit
+5 −5 src/layout/tiling.rs
@@ -10,12 +10,12 @@ impl Layout for TilingLayout {
10 screen_width: u32, 10 screen_width: u32,
11 screen_height: u32, 11 screen_height: u32,
12 ) -> Vec<WindowGeometry> { 12 ) -> Vec<WindowGeometry> {
13 - let count = windows.len(); 13 + let window_count = windows.len();
14 - if count == 0 { 14 + if window_count == 0 {
15 return Vec::new(); 15 return Vec::new();
16 } 16 }
17 17
18 - if count == 1 { 18 + if window_count == 1 {
19 vec![WindowGeometry { 19 vec![WindowGeometry {
20 x_coordinate: 0, 20 x_coordinate: 0,
21 y_coordinate: 0, 21 y_coordinate: 0,
@@ -31,8 +31,8 @@ impl Layout for TilingLayout {
31 height: screen_height, 31 height: screen_height,
32 }]; 32 }];
33 33
34 - let stack_height = screen_height / (count - 1) as u32; 34 + let stack_height = screen_height / (window_count - 1) as u32;
35 - for i in 1..count { 35 + for i in 1..window_count {
36 let y_offset = ((i - 1) as u32) * stack_height; 36 let y_offset = ((i - 1) as u32) * stack_height;
37 geometries.push(WindowGeometry { 37 geometries.push(WindowGeometry {
38 x_coordinate: master_width as i32, 38 x_coordinate: master_width as i32,