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

Unified Diff: chrome/views/non_client_view.cc

Issue 43052: Fix black titlebar rendering when toggling DWM when the window is maximized:... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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 | chrome/views/widget_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/views/non_client_view.cc
===================================================================
--- chrome/views/non_client_view.cc (revision 11361)
+++ chrome/views/non_client_view.cc (working copy)
@@ -66,6 +66,13 @@
GetWindowPlacement(frame_->GetHWND(), &saved_window_placement);
frame_->Hide();
+ // Important (and ugly) step: restore the window first, since our hiding hack
+ // doesn't work for maximized windows! We tell the frame not to allow itself
+ // to be made visible though, which removes the brief flicker.
+ frame_->set_force_hidden(true);
+ ShowWindow(frame_->GetHWND(), SW_RESTORE);
+ frame_->set_force_hidden(false);
+
SetUseNativeFrame(win_util::ShouldUseVistaFrame());
// Now that we've updated the frame, we'll want to restore our saved placement
« no previous file with comments | « no previous file | chrome/views/widget_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698