more light-weight duplicate-window detection