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