take window size into account before restricting the limit.