Changing resolution, fullscreen and window issues
There are still bugs with changing resolution, fullscreen and window from code. ALT-Tab from fullscreen is not working correctly (again).
See attached example. You can press W to switch to bigger window, B to fullscreen (fullhd) borderless mode and F to standard fullscreen (fullhd) mode. Switch to standard fullscreen and back to window fails and game disappears. Switching between fullscreen borderless and fullscreen standard usually works, but sometime window is not visible. That's why there is Window.Visible = true line in code.
ALT-Tab from standard fullscreen is not working correctly. Window is moved to weird position and only way to go back to fullscreen is to press ALT-Enter. That's wrong behavior for any PC game.
All tests done on Windows 10.
Expected behavior: Pressing keys should change window and resolution without any issue. ALT-Tab should move window to background. On selecting game window (with alt-tab) again it should go back to fullscreen automatically. Window after alt-tab should be in correct position or invisible.