Maximized window size was too large on restore

At least on Windows 8.1 Pro, when the window is maximized the reported dimensions should be saved in relation to the window state. Otherwise the restored window isn't maximized, yet it's larger than the screen.