1
0
mirror of https://github.com/20kdc/OC-KittenOS.git synced 2024-12-26 02:48:06 +11:00

Fix #2 (screens being double-claimed)

This commit is contained in:
20kdc 2018-06-03 20:50:12 +01:00
parent d1e83616e7
commit c3b6cdc898
2 changed files with 4 additions and 5 deletions

View File

@ -3,7 +3,7 @@
return {
["neo"] = {
desc = "KittenOS NEO Kernel & Base Libs",
v = 3,
v = 4,
deps = {
},
dirs = {

View File

@ -9,13 +9,12 @@ return function (
address
)
neo.ensureType(address, "string")
for _, monitor in ipairs(monitorPool) do
for k, monitor in ipairs(monitorPool) do
if monitor.address == address then
-- find GPU
local gpu, bestStats = nil, {-math.huge, -math.huge, -math.huge}
currentGPUBinding = {}
for k, _ in pairs(currentGPUBinding) do
currentGPUBinding[k] = nil
for a, _ in pairs(currentGPUBinding) do
currentGPUBinding[a] = nil
end
for v in gpus() do
v.bind(monitor.address, false)