prepare for frameless window