Merge pull request #251 from jacob-sabella/feature/w-engine-login-palette-sync

fix(w-engine): sync palette when restoring wallpaper on startup
This commit is contained in:
Spyridon Siarapis
2026-08-05 22:20:05 +02:00
committed by GitHub
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
id = "tadomika_ari/w-engine"
name = "W Engine"
version = "1.1.0"
version = "1.1.1"
# Tile and control callbacks are Luau closures rather than named globals, which
# the host resolves from plugin API 9 onwards.
plugin_api = 9
+5 -1
View File
@@ -791,13 +791,17 @@ publishStatus()
noctalia.runAsync(
"pkill linux-wallpaper 2>/dev/null; sleep 1; pkill -KILL linux-wallpaper 2>/dev/null; true",
function()
-- Bring back whatever was playing before the reload, cycle included.
-- Bring back whatever was playing before the reload, cycle included. The
-- palette is re-synced alongside the process: the shell restores its own
-- wallpaper on login, which drops the still we set for the live scene and
-- leaves the colors from whatever it picked instead.
for _, output in ipairs(noctalia.outputs()) do
local name = output.name
local id = data.current[name]
if type(id) == "string" and id ~= "" then
elapsed[name] = 0
launch(name, id)
syncPalette(name, id)
end
end
publishStatus()