From 6ce60ae01461efe0d4878380c1969a2c49863f91 Mon Sep 17 00:00:00 2001 From: Doug Binks Date: Thu, 31 Jul 2014 17:11:33 +0100 Subject: [PATCH] Fixed win32 issue with Fullscreen to Window retaining HWND_TOPMOST. HWND_NOTOPMOST used to set as highest non top window, and removed SWP_NOZORDER to ensure the HWND_NOTOPMOST parameter is used. --- src/win32_window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/win32_window.c b/src/win32_window.c index 20965e093..a797bdd48 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -1242,9 +1242,9 @@ void _glfwPlatformSetWindowMonitor(_GLFWwindow* window, int fullWidth, fullHeight; getFullWindowSize(window, width, height, &fullWidth, &fullHeight); - SetWindowPos(window->win32.handle, HWND_TOPMOST, + SetWindowPos(window->win32.handle, HWND_NOTOPMOST, 0, 0, fullWidth, fullHeight, - SWP_NOMOVE | SWP_NOZORDER | SWP_FRAMECHANGED); + SWP_NOMOVE | SWP_FRAMECHANGED); } }