When creating a fullscreen window with GLFW, setting the size will cause GLFW to switch video modes.