From b0ed9e30ceeb8ef16d242ea189f53e717ab37201 Mon Sep 17 00:00:00 2001 From: Paul Gofman Date: Wed, 6 Apr 2022 17:40:21 +0300 Subject: [PATCH] [d3d9] Filter window messages when processing WM_ACTIVATEAPP. --- src/d3d9/d3d9_swapchain.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/d3d9/d3d9_swapchain.cpp b/src/d3d9/d3d9_swapchain.cpp index 8dad6995..b885a100 100644 --- a/src/d3d9/d3d9_swapchain.cpp +++ b/src/d3d9/d3d9_swapchain.cpp @@ -128,6 +128,7 @@ namespace dxvk { windowData.swapchain->GetDevice()->GetCreationParameters(&create_parms); if (!(create_parms.BehaviorFlags & D3DCREATE_NOWINDOWCHANGES)) { + D3D9WindowMessageFilter filter(window); if (wparam) { // Heroes of Might and Magic V needs this to resume drawing after a focus loss D3DPRESENT_PARAMETERS params;