remove unneeded window rules