From 149ce7072d065d2ec1cd2381338d21856e6ce4c7 Mon Sep 17 00:00:00 2001 From: MeexReay Date: Sat, 22 Mar 2025 01:55:12 +0300 Subject: [PATCH] startz fix --- app/mxwm/startz.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/mxwm/startz.js b/app/mxwm/startz.js index 81441ec..87167ee 100644 --- a/app/mxwm/startz.js +++ b/app/mxwm/startz.js @@ -7,14 +7,14 @@ async function main(args) { let ctx = getGraphics() - while (true) { + setInterval(() => { ctx.fillStyle = "black" ctx.fillRect(0, 0, ctx.canvas.width, ctx.canvas.height) for (const win of window.mxwm_windows) { ctx.drawImage(win.canvas, win.x, win.y); } - } + }, 1000 / 60) disableGraphics() } \ No newline at end of file