chore: fix typo (#1604)
Some checks failed
Build / build (push) Has been cancelled

This commit is contained in:
Noritaka Kobayashi 2025-06-02 00:52:26 +09:00 committed by GitHub
parent ed2f808707
commit 3f65edde13
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -76,13 +76,13 @@ class MultiWindowManager {
let screenFrame = screens.currentScreen.adjustedVisibleFrame().screenFlipped
let count = windows.count
let colums = Int(ceil(sqrt(CGFloat(count))))
let rows = Int(ceil(CGFloat(count) / CGFloat(colums)))
let size = CGSize(width: (screenFrame.maxX - screenFrame.minX) / CGFloat(colums), height: (screenFrame.maxY - screenFrame.minY) / CGFloat(rows))
let columns = Int(ceil(sqrt(CGFloat(count))))
let rows = Int(ceil(CGFloat(count) / CGFloat(columns)))
let size = CGSize(width: (screenFrame.maxX - screenFrame.minX) / CGFloat(columns), height: (screenFrame.maxY - screenFrame.minY) / CGFloat(rows))
for (ind, w) in windows.enumerated() {
let column = ind % Int(colums)
let row = ind / Int(colums)
let column = ind % Int(columns)
let row = ind / Int(columns)
tileWindow(w, screenFrame: screenFrame, size: size, column: column, row: row)
}
}