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