Filter out duplicate windows