Add latch to r_centerWindow and r_allowResize