From 85869aa80d5972b578f35c6b1b60ad4ec4eed9ef Mon Sep 17 00:00:00 2001 From: 20kdc Date: Mon, 26 Apr 2021 18:06:46 +0100 Subject: [PATCH] sys-init fix (hopefully) (presync) This wasn't properly committed & pushed, fixed that now. Hopefully it doesn't destroy everything. --- claw/code-claw.lua | 2 +- code/apps/sys-init.lua | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/claw/code-claw.lua b/claw/code-claw.lua index adceb2b..426fc6a 100644 --- a/claw/code-claw.lua +++ b/claw/code-claw.lua @@ -32,7 +32,7 @@ return { }, ["neo-init"] = { desc = "KittenOS NEO / sys-init (startup)", - v = 10, + v = 11, deps = { "neo", "neo-icecap", diff --git a/code/apps/sys-init.lua b/code/apps/sys-init.lua index b452c7f..068a27b 100644 --- a/code/apps/sys-init.lua +++ b/code/apps/sys-init.lua @@ -16,7 +16,7 @@ neo.requestAccess("s.h._kosneo_syslog") -- gpuG/performDisclaim are GPU management, while screen is used for prioritization local gpuG, performDisclaim, screen = nil -local scrW, scrH +local scrW, scrH = 1, 1 local nssInst local console = {} @@ -272,6 +272,7 @@ local function finalPrompt() if sig[1] == "x.neo.sys.screens" then -- We need to reinit screens no matter what. retrieveNssMonitor(screen) + active = false end if sig[1] == "h.key_down" then if sig[2] ~= lastKeyboard then @@ -280,7 +281,7 @@ local function finalPrompt() if nScreen and nScreen ~= screen then neo.emergency("new primary:", nScreen) retrieveNssMonitor(nScreen, screen) - basicDraw() + active = false end end if sig[4] == 15 then