From 3aae6530e2de2a78dc6fdb75b369c9a39482f4ae Mon Sep 17 00:00:00 2001 From: zitronenbaum Date: Thu, 21 Oct 2021 01:14:48 +0200 Subject: [PATCH] fix autorestore bug --- contents/code/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contents/code/main.js b/contents/code/main.js index 63aab69..3e381ef 100644 --- a/contents/code/main.js +++ b/contents/code/main.js @@ -134,8 +134,8 @@ function restoreMinimized() { // check for overlap with other windows noOverlap = true; const clients = workspace.clientList(); - for (var i = 0; i < clients.length; i++) { - other = clients[i]; + for (var j = 0; j < clients.length; j++) { + other = clients[j]; if (overlap(inactive, other)) { // overlap: don't restore current window noOverlap = false;