openglglfwmaximize-window

GLFW3, how to tell if a window is currently maximized?


Is there a way to tell if a window is currently maximized in GLFW3? Not fullscreen, but maximized in windowed mode.


Solution

  • From https://www.glfw.org/docs/3.3/window_guide.html#window_maximize

    int maximized = glfwGetWindowAttrib(window, GLFW_MAXIMIZED);