diff options
author | ananta <ananta@chromium.org> | 2014-10-06 19:34:11 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-07 02:34:55 +0000 |
commit | ddd55dea0267689338e02c4f83228ef4d6e04b4c (patch) | |
tree | a3e86f00098dcbb62b0fff4b7c525b8b0328fd4a /win8 | |
parent | 30bf8847fbf44f26486a0d3efc39efeaba37966b (diff) | |
download | chromium_src-ddd55dea0267689338e02c4f83228ef4d6e04b4c.zip chromium_src-ddd55dea0267689338e02c4f83228ef4d6e04b4c.tar.gz chromium_src-ddd55dea0267689338e02c4f83228ef4d6e04b4c.tar.bz2 |
Prevent DXGI mode switches in Chrome OS mode on Windows 7.
By default mode switches are enabled which means that DXGI monitors the message
queue and responds to mode switch messages like Alt + Enter which attempts to take
the window fullscreen which causes Chrome OS mode to become unusable.
BUG=420600
Review URL: https://codereview.chromium.org/633723002
Cr-Commit-Position: refs/heads/master@{#298334}
Diffstat (limited to 'win8')
-rw-r--r-- | win8/metro_driver/direct3d_helper.cc | 5 |
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)); } } } |