Sleep when add window