Fix viewport in snap mode (Windows 8)