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:
parent
d1e83616e7
commit
c3b6cdc898
@ -3,7 +3,7 @@
|
||||
return {
|
||||
["neo"] = {
|
||||
desc = "KittenOS NEO Kernel & Base Libs",
|
||||
v = 3,
|
||||
v = 4,
|
||||
deps = {
|
||||
},
|
||||
dirs = {
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user