fix WindowImplBase max/restore button change