Lock the size of the window