This behavior can be disabled with the GLFW_AUTO_ICONIFY window hint, for example if you wish to simultaneously cover multiple monitors with full screen windows. If the window has an OpenGL or OpenGL ES context, it will be unaffected.īy default, the original video mode of the monitor will be restored and the window iconified if it loses input focus, to allow the user to switch back to the desktop. In all cases, the new video mode will be selected the same way as the video mode chosen by glfwCreateWindow.
If you only need change its resolution you can also call glfwSetWindowSize. Once you have a full screen window, you can change its resolution, refresh rate and monitor with glfwSetWindowMonitor. For more information about retrieving video modes, see Video modes. The supported video mode most closely matching the desired video mode will be set for the chosen monitor as long as the window has input focus. Windowed mode windows can be made full screen by setting a monitor with glfwSetWindowMonitor, and full screen ones can be made windowed by unsetting it with the same function.Įach field of the GLFWvidmode structure corresponds to a function parameter or window hint and combine to form the desired video mode for that window. Full screen windows cover the entire display area of a monitor, have no border or decorations.