Use the index of the previous window to calculate the new stack index