From c552b0527473e0b58aea46621bb5ea124d77b545 Mon Sep 17 00:00:00 2001 From: waynemwashuma <94756970+waynemwashuma@users.noreply.github.com> Date: Wed, 27 May 2026 17:24:32 +0300 Subject: [PATCH] Resize backing window canvas on true state change --- src/window/commands/window.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/window/commands/window.js b/src/window/commands/window.js index cf015a41..79b96ded 100644 --- a/src/window/commands/window.js +++ b/src/window/commands/window.js @@ -61,6 +61,10 @@ export class WindowCommand extends Command { function execute(command, canvas, window) { switch (command.type) { case WindowRequest.Resize: + if (window.getWidth() === command.data.x && window.getHeight() === command.data.y) { + break + } + canvas.width = command.data.x canvas.height = command.data.y window.set(canvas.width, canvas.height)