Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / win8 / metro_driver / direct3d_helper.cc
index b4da8cd..722adc4 100644 (file)
@@ -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));
     }
   }
 }