From 9cd0c101f09ca1085d8e09536b20d7695827c937 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Thu, 16 Jun 2016 12:52:22 +0200 Subject: [PATCH] Fix glfwMaximizeWindow not checking window mode --- README.md | 2 ++ src/window.c | 4 ++++ 2 files changed, 6 insertions(+) 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); }