Removed unnecessary calculation on window offsets.