lock window size. close #5