Skip to content

Commit

Permalink
fix autorestore bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nclarius committed Oct 20, 2021
1 parent 664464f commit 3aae653
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contents/code/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3aae653

Please sign in to comment.