From d937b74b8f2f46e4943535d371e3f333ddf491a4 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sat, 28 Dec 2013 20:56:57 +0100 Subject: [PATCH] Fixed glfwSetWindowSize stealing focus. --- README.md | 1 + src/win32_window.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7d30fa2c..9414c14e 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,7 @@ guide in the GLFW documentation. - [Win32] Bugfix: Negative window positions were reported incorrectly - [Win32] Bugfix: The iconify callback was not triggered when switching away from a full screen window using Alt+Tab + - [Win32] Bugfix: Resizing a window with `glfwSetWindowSize` gave it focus - [Cocoa] Added dependency on CoreVideo framework for refresh rate retrieval - [Cocoa] Enabled Lion full screen for resizable windowed mode windows - [Cocoa] Moved to Cocoa API for application transformation and activation diff --git a/src/win32_window.c b/src/win32_window.c index 32b6ff21..6803f70f 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -1034,7 +1034,7 @@ void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height) SetWindowPos(window->win32.handle, HWND_TOP, 0, 0, fullWidth, fullHeight, - SWP_NOOWNERZORDER | SWP_NOMOVE | SWP_NOZORDER); + SWP_NOACTIVATE | SWP_NOOWNERZORDER | SWP_NOMOVE | SWP_NOZORDER); } }