Major improvements in window positioning compensation