Apply changes before sending event, so values will be correct
Merge pull request #1728 from Nezz/w8_reschangedfix

Fixed resolution change on Windows 8