Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(844)

Unified Diff: views/window/window_win.cc

Issue 118171: Fix for crash when changing frame on non-DWM systems.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/window/window_win.cc
===================================================================
--- views/window/window_win.cc (revision 17450)
+++ views/window/window_win.cc (working copy)
@@ -191,6 +191,13 @@
} // namespace
void WindowWin::FrameTypeChanged() {
+ // If we're not on Aero Glass, we don't care doing any of the DWM stuff. Just
+ // tell the NCV to update and leave it there.
+ if (!win_util::ShouldUseVistaFrame()) {
+ non_client_view_->UpdateFrame();
+ return;
+ }
+
// The window may try to paint in SetUseNativeFrame, and as a result it can
// get into a state where it is very unhappy with itself - rendering black
// behind the entire client area. This is because for some reason the
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698