lock window size, resize window to selected size