Skip to content

Commit 3aae653

Browse files
committed
fix autorestore bug
1 parent 664464f commit 3aae653

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contents/code/main.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ function restoreMinimized() {
134134
// check for overlap with other windows
135135
noOverlap = true;
136136
const clients = workspace.clientList();
137-
for (var i = 0; i < clients.length; i++) {
138-
other = clients[i];
137+
for (var j = 0; j < clients.length; j++) {
138+
other = clients[j];
139139
if (overlap(inactive, other)) {
140140
// overlap: don't restore current window
141141
noOverlap = false;

0 commit comments

Comments
 (0)