[Linux] fix that can not set window's min and max size on one time.