Mesa (master): winsys/d3d12: Use MakeWindowAssociation to remove DXGI's alt+enter handling

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Nov 18 10:43:33 UTC 2020


Module: Mesa
Branch: master
Commit: 03cfc93ab5ee8a0c6f34f893e86baa3a40582e85
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=03cfc93ab5ee8a0c6f34f893e86baa3a40582e85

Author: Jesse Natalie <jenatali at microsoft.com>
Date:   Wed Oct 28 15:39:33 2020 -0700

winsys/d3d12: Use MakeWindowAssociation to remove DXGI's alt+enter handling

Reviewed-by: Charmaine Lee <charmainel at vmware.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7535>

---

 src/gallium/winsys/d3d12/wgl/d3d12_wgl_framebuffer.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gallium/winsys/d3d12/wgl/d3d12_wgl_framebuffer.cpp b/src/gallium/winsys/d3d12/wgl/d3d12_wgl_framebuffer.cpp
index 68b5b7d2b80..32723d9fe58 100644
--- a/src/gallium/winsys/d3d12/wgl/d3d12_wgl_framebuffer.cpp
+++ b/src/gallium/winsys/d3d12/wgl/d3d12_wgl_framebuffer.cpp
@@ -99,6 +99,9 @@ d3d12_wgl_framebuffer_resize(stw_winsys_framebuffer *fb,
       }
 
       swapchain1.As(&framebuffer->swapchain);
+
+      screen->factory->MakeWindowAssociation(framebuffer->window,
+                                             DXGI_MWA_NO_WINDOW_CHANGES | DXGI_MWA_NO_ALT_ENTER | DXGI_MWA_NO_PRINT_SCREEN);
    }
    else {
       struct pipe_fence_handle *fence = NULL;



More information about the mesa-commit mailing list