Refactored window constants on windows