some mcsr bs

This commit is contained in:
2026-07-30 17:02:04 -07:00
parent f012e0251e
commit 3980ba3064
2 changed files with 8 additions and 14 deletions

View File

@@ -37,13 +37,8 @@ local function select_window(n)
table.sort(
windows,
function (a, b)
if a.at.x < b.at.x then
return true
end
if a.at.x > b.at.x then
return false
end
return a.at.y < b.at.y
return ((a.at.x^2 + a.at.y^2) * 1)
< ((b.at.x^2 + b.at.y^2) * 1)
end
)
return windows[n]