A better window ignore algorithm