From 1efe91e17d65e85b6c82979d9c92af79403bb297 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Iv=C4=83ncescu?= Date: Wed, 8 Jul 2020 18:57:49 +0200 Subject: [PATCH] [dxgi] Restore the Topmost state upon exiting fullscreen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Gabriel Ivăncescu --- src/dxgi/dxgi_swapchain.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dxgi/dxgi_swapchain.cpp b/src/dxgi/dxgi_swapchain.cpp index a10c02691..4d90fa6fa 100644 --- a/src/dxgi/dxgi_swapchain.cpp +++ b/src/dxgi/dxgi_swapchain.cpp @@ -654,9 +654,9 @@ namespace dxvk { // Restore window position and apply the style const RECT rect = m_windowState.rect; - ::SetWindowPos(m_window, 0, + ::SetWindowPos(m_window, (m_windowState.exstyle & WS_EX_TOPMOST) ? HWND_TOPMOST : HWND_NOTOPMOST, rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top, - SWP_FRAMECHANGED | SWP_NOZORDER | SWP_NOACTIVATE); + SWP_FRAMECHANGED | SWP_NOACTIVATE); return S_OK; }