1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-19 05:52:11 +01:00

[dxgi] Restore the Topmost state upon exiting fullscreen

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
This commit is contained in:
Gabriel Ivăncescu 2020-07-08 18:57:49 +02:00 committed by Philip Rebohle
parent 4ac9dcf855
commit 1efe91e17d
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -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;
}