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

Unified Diff: ui/views/widget/desktop_aura/desktop_root_window_host_win.cc

Issue 22353018: Fix aura flickering when not using DWM. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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: ui/views/widget/desktop_aura/desktop_root_window_host_win.cc
diff --git a/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc b/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc
index ee83e2682ca2b02e3a0f1dbec66282e1fef629c0..159ffc1080e2b2f8d6731c1e797c0ec1402bd650 100644
--- a/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc
+++ b/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc
@@ -390,14 +390,9 @@ void DesktopRootWindowHostWin::OnNativeWidgetBlur() {
void DesktopRootWindowHostWin::SetInactiveRenderingDisabled(
bool disable_inactive) {
- // We call DefWindowProc of WM_NCACTIVATE to paint the caption as active or
- // inactive. This is safe with the only sideeffect being the
- // WM_GETTEXT message which is sent by DefWindowProc to get the text to be
- // displayed on the caption.
- ::DefWindowProc(message_handler_->hwnd(),
- WM_NCACTIVATE,
- !!disable_inactive,
- 0);
+ // Force the non-client area (most notably the title bar) to paint as either
+ // active or inactive, depending on the input.
+ SendMessage(message_handler_->hwnd(), WM_NCACTIVATE, !!disable_inactive, 0);
}
////////////////////////////////////////////////////////////////////////////////
« 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