summaryrefslogtreecommitdiffstats
path: root/win8
diff options
context:
space:
mode:
Diffstat (limited to 'win8')
-rw-r--r--win8/metro_driver/direct3d_helper.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/win8/metro_driver/direct3d_helper.cc b/win8/metro_driver/direct3d_helper.cc
index b4da8cd..722adc4 100644
--- a/win8/metro_driver/direct3d_helper.cc
+++ b/win8/metro_driver/direct3d_helper.cc
@@ -152,6 +152,11 @@ void Direct3DHelper::CreateWindowSizeDependentResources() {
nullptr,
nullptr,
&swap_chain_));
+ // Prevent DXGI from monitoring an application message queue and thus
+ // attempt mode changes. For e.g. Alt + Enter by default causes
+ // DXGI to attempt to take the window fullscreen.
+ CheckIfFailed(dxgi_factory->MakeWindowAssociation(
+ window, DXGI_MWA_NO_WINDOW_CHANGES));
}
}
}