From b91116e2bc8e1abe83b2f486b9cb9b1f0fc1109b Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Mon, 19 May 2014 11:54:54 +0200 Subject: [PATCH] Fixed glfwShowWindow restoring maximized windows. Fixes #264. --- README.md | 1 + src/win32_window.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9d1c9ffc..798509ae 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,7 @@ The following dependencies are needed by the examples and test programs: the error callback - [Win32] Bugfix: Some keys were reported based on the current layout instead of their physical location + - [Win32] Bugfix: Maximized hidden windows were restored by `glfwShowWindow` - [X11] Added run-time support for systems lacking the XKB extension - [X11] Made GLX 1.3 the minimum supported version - [X11] Bugfix: The case of finding no usable CRTCs was not detected diff --git a/src/win32_window.c b/src/win32_window.c index 4fd31ea4..52423fe0 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -1154,7 +1154,7 @@ void _glfwPlatformRestoreWindow(_GLFWwindow* window) void _glfwPlatformShowWindow(_GLFWwindow* window) { - ShowWindow(window->win32.handle, SW_SHOWNORMAL); + ShowWindow(window->win32.handle, SW_SHOW); BringWindowToTop(window->win32.handle); SetForegroundWindow(window->win32.handle); SetFocus(window->win32.handle);