diff --git a/README.md b/README.md index 7457f99e..39e82e56 100644 --- a/README.md +++ b/README.md @@ -99,6 +99,8 @@ information on what to include when reporting a bug. ## Changelog +- Bugfix: Calling `glfwMaximizeWindow` on a full screen window was not ignored + ## Contact diff --git a/src/window.c b/src/window.c index 3fdd1975..fe741dc6 100644 --- a/src/window.c +++ b/src/window.c @@ -631,6 +631,10 @@ GLFWAPI void glfwMaximizeWindow(GLFWwindow* handle) assert(window != NULL); _GLFW_REQUIRE_INIT(); + + if (window->monitor) + return; + _glfwPlatformMaximizeWindow(window); }